nuxt-auth-utils^0.1.0: Cannot find package 'nitropack'
I am not sure why I am getting this error now. It worked fine for a few hours.
I tried installing nitropack as a dev dependency, but that didn't fix it.
[02:10:37] WARN [plugin node-resolve] Could not resolve import "nitropack/runtime" in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nuxt-auth-utils\dist\runtime\server\plugins\oauth.js using exports defined in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nitropack\package.json.
[02:10:38] WARN [plugin node-resolve] Could not resolve import "nitropack/runtime" in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nuxt-auth-utils\dist\runtime\server\plugins\oauth.js using exports defined in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nitropack\package.json.
[02:10:38] WARN "nitropack/runtime" is imported by "node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nuxt-auth-utils/dist/runtime/server/plugins/oauth.js", but could not be resolved – treating it as an external dependency.
[worker reload] [worker init] Cannot find package 'nitropack' imported from A:\xxx\.nuxt\dev\index.mjs 02:13:16
at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at packageResolve (node:internal/modules/esm/resolve:916:9)
at moduleResolve (node:internal/modules/esm/resolve:973:20)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
[02:10:37] WARN [plugin node-resolve] Could not resolve import "nitropack/runtime" in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nuxt-auth-utils\dist\runtime\server\plugins\oauth.js using exports defined in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nitropack\package.json.
[02:10:38] WARN [plugin node-resolve] Could not resolve import "nitropack/runtime" in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nuxt-auth-utils\dist\runtime\server\plugins\oauth.js using exports defined in A:\xxx\node_modules\.pnpm\n[email protected][email protected][email protected]\node_modules\nitropack\package.json.
[02:10:38] WARN "nitropack/runtime" is imported by "node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nuxt-auth-utils/dist/runtime/server/plugins/oauth.js", but could not be resolved – treating it as an external dependency.
[worker reload] [worker init] Cannot find package 'nitropack' imported from A:\xxx\.nuxt\dev\index.mjs 02:13:16
at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at packageResolve (node:internal/modules/esm/resolve:916:9)
at moduleResolve (node:internal/modules/esm/resolve:973:20)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
1 Reply
npx nuxi info
:
------------------------------
- Operating System: Windows_NT
- Node Version: v18.19.0
- Nuxt Version: 3.12.3
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, runtimeConfig, app, router, typescript, modules, pinia, css, postcss, colorMode, shadcn, posthog
- Runtime Modules: @nuxt/[email protected], @nuxtjs/[email protected], [email protected], @nuxtjs/[email protected], [email protected], @pinia/[email protected], [email protected]
- Build Modules: -
------------------------------
------------------------------
- Operating System: Windows_NT
- Node Version: v18.19.0
- Nuxt Version: 3.12.3
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, runtimeConfig, app, router, typescript, modules, pinia, css, postcss, colorMode, shadcn, posthog
- Runtime Modules: @nuxt/[email protected], @nuxtjs/[email protected], [email protected], @nuxtjs/[email protected], [email protected], @pinia/[email protected], [email protected]
- Build Modules: -
------------------------------
.nuxt
, node_modules
and pnpm-lock.yaml
. Did not work.
Looks like windows is the problem here.
like every 3rd time I have a problem anywhere...
man I have to switch to linux
...
What I did: I updated and restarted my PC. Like we say in Austria: I performed AEG (ausgschoit, eigschoit, geht wieder) (basically the act of: "Have you tried turning it off and on again?" - xd)