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
Having a file run is not working with the latest betas. some.mjs in my example does just console.log('foo')
✗ npm i edge-runtime@1.1.0-beta.11
✗ npx edge-runtime some.mjs
foo
✗ npm i edge-runtime@1.1.0-beta.15
✗ npx edge-runtime some.mjs
Error: Cannot find module 'tr46'
Require stack:
- /repo/node_modules/@edge-runtime/vm/dist/edge-vm.js
- /repo/node_modules/@edge-runtime/vm/dist/index.js
- /repo/node_modules/edge-runtime/dist/edge-runtime.js
- /repo/node_modules/edge-runtime/dist/cli/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at addPrimitives (/repo/node_modules/@edge-runtime/vm/dist/edge-vm.js:79:37)
at Object.extend (/repo/node_modules/@edge-runtime/vm/dist/edge-vm.js:17:38)
at new VM (/repo/node_modules/@edge-runtime/vm/dist/vm.js:23:92)
at new EdgeVM (/repo/node_modules/@edge-runtime/vm/dist/edge-vm.js:13:9)
at new EdgeRuntime (/repo/node_modules/edge-runtime/dist/edge-runtime.js:18:9)
at main (/repo/node_modules/edge-runtime/dist/cli/index.js:37:21) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/repo/node_modules/@edge-runtime/vm/dist/edge-vm.js',
'/repo/node_modules/@edge-runtime/vm/dist/index.js',
'/repo/node_modules/edge-runtime/dist/edge-runtime.js',
'/repo/node_modules/edge-runtime/dist/cli/index.js'
]
}
Edit: likewise, globals are missing in REPL
➜ ✗ npx edge-runtime
ƒ => fetch
Uncaught ReferenceError: fetch is not defined
ƒ => crypto
Uncaught ReferenceError: crypto is not defined
ƒ => atob
Uncaught ReferenceError: atob is not defined
ƒ => btoa
Uncaught ReferenceError: btoa is not defined
The text was updated successfully, but these errors were encountered:
Having a file run is not working with the latest betas.
some.mjs
in my example does justconsole.log('foo')
Edit: likewise, globals are missing in REPL
The text was updated successfully, but these errors were encountered: