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 [worker] Cannot find package 'std-env' imported from nuxt3-app/.nuxt/nitro/index.mjs #13273

Closed
tomoat opened this issue Jan 19, 2022 · 1 comment

Comments

@tomoat
Copy link

tomoat commented Jan 19, 2022

Environment

Nuxt CLI v3.0.0-27375427.d07d572
RootDir: /Users/edy/Dev/Codes/nuxt3-app
Nuxt project info:


  • Operating System: Darwin
  • Node Version: v17.2.0
  • Nuxt Version: 3.0.0-27375427.d07d572
  • Package Manager: pnpm@6.24.0
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

> npx nuxi init nuxt3-app
> cd nuxt3-app
> pnpm install 
> pnpm dev

Describe the bug

➜  nuxt3-app git:(master) ✗ pnpm dev

> @ dev /Users/edy/Dev/Codes/nuxt3-app
> nuxi dev
Nuxt CLI v3.0.0-27375427.d07d572                                                                              17:59:26
                                                                                                              17:59:27
  > Local:    http://localhost:4000/
  > Network:  http://192.168.0.14:4000/

ℹ Vite warmed up in 3152ms                                                                                    17:59:38
✔ Vite server built in 4609ms                                                                                 17:59:41
✔ Nitro built in 1657 ms                                                                                      17:59:43

 ERROR  [worker] Cannot find package 'std-env' imported from /Users/edy/Dev/Codes/nuxt3-app/.nuxt/nitro/index.mjs
Did you mean to import std-env@3.0.1/node_modules/std-env/dist/index.cjs?

  Did you mean to import std-env@3.0.1/node_modules/std-env/dist/index.cjs?
  at new NodeError (node:internal/errors:371:5)
  at packageResolve (node:internal/modules/esm/resolve:864:9)
  at moduleResolve (node:internal/modules/esm/resolve:910:18)
  at defaultResolve (node:internal/modules/esm/resolve:1005:11)
  at ESMLoader.resolve (node:internal/modules/esm/loader:475:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:245:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
  at link (node:internal/modules/esm/module_job:78:36)


 WARN  [worker] Cannot find package 'std-env' imported from /Users/edy/Dev/Codes/nuxt3-app/.nuxt/nitro/index.mjs
Did you mean to import std-env@3.0.1/node_modules/std-env/dist/index.cjs?

  Did you mean to import std-env@3.0.1/node_modules/std-env/dist/index.cjs?
  at new NodeError (node:internal/errors:371:5)
  at packageResolve (node:internal/modules/esm/resolve:864:9)
  at moduleResolve (node:internal/modules/esm/resolve:910:18)
  at defaultResolve (node:internal/modules/esm/resolve:1005:11)
  at ESMLoader.resolve (node:internal/modules/esm/loader:475:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:245:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
  at link (node:internal/modules/esm/module_job:78:36)

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

You can track pnp support at #11823 - or you could try using shamefully-hoist with pnpm...

@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