Skip to content
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

Error in tests when updating to 0.99.7 #282

Open
AfLosada opened this issue Feb 15, 2024 · 1 comment
Open

Error in tests when updating to 0.99.7 #282

AfLosada opened this issue Feb 15, 2024 · 1 comment

Comments

@AfLosada
Copy link

Hi guys, I recently updated my swagger version form 0.95.7 to 0.99.7 (latest) and my jest unit tests are failing.
Here is the log:

 RUNS  src/data-query/stats/baseball/MLB/players/players-baseball-stats.test.js
node:internal/modules/esm/utils:180
    throw new ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG();
          ^

TypeError: A dynamic import callback was invoked without --experimental-vm-modules
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:180:11)
    at /Users/andres.f.losada/Documents/Repositories/xxx/products/<my-product>/node_modules/swagger-stats/lib/swsElasticEmitter.js:15:5

Is this expected?
Am I missing some babel config (i've already tried adding @babel/plugin-syntax-dynamic-import to my .babelrc)

@MZawadz1
Copy link

Any updates on this? I've also encountered this issue (with version 0.99.2), downgrading to 0.95.7 fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants