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
file:///home/mike/work/rocky-api/node_modules/@mux/mux-node/_shims/registry.mjs:17
throw new Error(`you must \`import '@mux/mux-node/shims/${shims.kind}'\` before importing anything else from @mux/mux-node`);
^
Error: you must `import '@mux/mux-node/shims/node'` before importing anything else from @mux/mux-node
at Module.setShims (file:///home/mike/work/rocky-api/node_modules/@mux/mux-node/_shims/registry.mjs:17:15)
at init (file:///home/mike/work/rocky-api/node_modules/@mux/mux-node/_shims/index.mjs:7:26)
at file:///home/mike/work/rocky-api/node_modules/@mux/mux-node/core.mjs:17:1
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Node.js v22.14.0
Adding import '@mux/mux-node/shims/node'; before the other import in test.mjs results in:
Error: can't `import '@mux/mux-node/shims/node'` after `import '@mux/mux-node/shims/node'`
The text was updated successfully, but these errors were encountered:
versions:
Example code:
This works with all versions of mux:
This works with mux v10, but fails with mux v11:
Adding
import '@mux/mux-node/shims/node';
before the other import intest.mjs
results in:The text was updated successfully, but these errors were encountered: