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

Windows 10 - "nuxi dev" errored. #13737

Closed
genesem opened this issue Apr 14, 2022 · 1 comment
Closed

Windows 10 - "nuxi dev" errored. #13737

genesem opened this issue Apr 14, 2022 · 1 comment

Comments

@genesem
Copy link

genesem commented Apr 14, 2022

Environment


  • Operating System: Windows_NT
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-27498764.32c798c
  • Package Manager: yarn@1.22.18
  • Builder: vite
  • 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

@genesem genesem changed the title Windows Windows 10 - "nuxi dev" errored. Apr 14, 2022
@genesem
Copy link
Author

genesem commented Apr 14, 2022

#13730

@genesem genesem closed this as completed Apr 14, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants