Cannot use import statement outside a module
I’m getting import errors with my vite / typescript project. I also notice that the project was just updated yesterday and it’s currently failing CI checks. I’m just checking if this is already a known issue.
Error:
REDACTED\node_modules\@bpmn-io\form-js-viewer\dist\index.es.js:1
[1] import Ids from 'ids';
[1] ^^^^^^
[1]
[1] SyntaxError: Cannot use import statement outside a module
[1] at internalCompileFunction (node:internal/vm:73:18)
[1] at wrapSafe (node:internal/modules/cjs/loader:1176:20)
[1] at Module._compile (node:internal/modules/cjs/loader:1218:27)
[1] at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
[1] at Module.load (node:internal/modules/cjs/loader:1117:32)
[1] at Module._load (node:internal/modules/cjs/loader:958:12)
[1] at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
[1] at ModuleJob.run (node:internal/modules/esm/module_job:194:25)