You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console Output
```
[ERROR] Unexpected token 'export'
Stack trace:
at internalCompileFunction (node:internal/vm:128:18)
at Module._compile (node:internal/modules/cjs/loader:1332:27)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at cjsLoader (node:internal/modules/esm/translators:366:17)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
[...] See full stack trace in the browser, or rerun with --verbose.
```
The text was updated successfully, but these errors were encountered:
I see the report from the link you shared. Do you have an idea on how to fix that. Happy to review a PR :)
The package does not specify the "type" field. NodeJS may attempt to detect the package type causing a small performance hit. Consider adding "type": "commonjs". ([More info](https://publint.dev/rules.html#use_type))
/lib/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /lib/index.mjs ([More info](https://publint.dev/rules.html#file_invalid_format))
/style/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /style/index.mjs ([More info](https://publint.dev/rules.html#file_invalid_format))
/lib/examples/All.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /lib/examples/All.mjs ([More info](https://publint.dev/rules.html#file_invalid_format))
/lib/app/App.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /lib/app/App.mjs ([More info](https://publint.dev/rules.html#file_invalid_format))
Description
The library seems to be packaged incorrectly, and therefore does not import into applications built (for example) with vite.
Reproduce
Please see: https://publint.dev/@datalayer/[email protected]
Expected behavior
package should import properly
Context
Console Output
``` [ERROR] Unexpected token 'export' Stack trace: at internalCompileFunction (node:internal/vm:128:18) at Module._compile (node:internal/modules/cjs/loader:1332:27) at Module.load (node:internal/modules/cjs/loader:1206:32) at cjsLoader (node:internal/modules/esm/translators:366:17) at ModuleJob.run (node:internal/modules/esm/module_job:222:25) [...] See full stack trace in the browser, or rerun with --verbose. ```The text was updated successfully, but these errors were encountered: