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
User Config: telemetry, meta, components, css, build
Runtime Modules: -
Build Modules: -
Reproduction
nuxt3 latest version,
"npx nuxi dev -o" - errored.
But: "npx nuxi build" and "npx nuxi dev" - works well.
Describe the bug
Nuxt CLI v3.0.0-27498764.32c798c
...
ERROR __dirname is not defined in ES module scope
at /D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index8.mjs:107:36
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async _open (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index6.mjs:422:31)
at async listen (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index6.mjs:427:5)
at async Object.invoke (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/dev.mjs:6725:22)
at async _main (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/cli.mjs:46:20)
makefile:40: recipe for target 'dev' failed
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Windows_NT
v16.14.2
3.0.0-27498764.32c798c
yarn@1.22.18
vite
telemetry
,meta
,components
,css
,build
-
-
Reproduction
nuxt3 latest version,
"npx nuxi dev -o" - errored.
But: "npx nuxi build" and "npx nuxi dev" - works well.
Describe the bug
Nuxt CLI v3.0.0-27498764.32c798c
...
ERROR __dirname is not defined in ES module scope
at /D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index8.mjs:107:36
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async _open (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index6.mjs:422:31)
at async listen (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/index6.mjs:427:5)
at async Object.invoke (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/chunks/dev.mjs:6725:22)
at async _main (/D:/Dev/nuxt3-tw3-base/node_modules/nuxi/dist/cli.mjs:46:20)
makefile:40: recipe for target 'dev' failed
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: