-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript error in exificient.js line 2998 - Uncaught ReferenceError: exports is not defined #18
Comments
So, this might be a harmless warning in the browser. I did some googling on this error, and it seems to have something to do with TypeScript, and additionally, I noticed the exificient.js demo works, but it ALSO throws that error. |
I tried the demos on http://exificient.github.io/javascript/ and they seem to work fine. BTW, yes, on the console I see the same warning. |
The typescript type exports are missing for all classes, which are required to implement and XML encoding and decoding like described in the example from the main page.
|
That is correct, since it is meant to be used as JS library. No need for TS export, even though TS support might be useful as well.
Note sure why TS exports are needed. As you can see the online demo at the http://exificient.github.io/javascript/ works. |
When trying to use exificient.js, Firefox (109.0 Windows 64-bit) is logging an error:
Uncaught ReferenceError: exports is not defined
https://unpkg.com/[email protected]/dist/exificient.js:2998
The line in question is:
exports.EXI4JSON = EXI4JSON;
I think this is preventing exificient from working at all.
The text was updated successfully, but these errors were encountered: