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
(node-resolve plugin) Could not resolve import "#app" in /nuxt-3-auth/src/runtime/services/AuthStorage.ts using imports defined in /nuxt-3-auth/package.json.
(node-resolve plugin) Could not resolve import "#app" in /nuxt-3-auth/src/runtime/services/AuthStorage.ts using imports defined in /nuxt-3-auth/package.json.
"#app" is imported by "src/runtime/services/AuthStorage.ts", but could not be resolved – treating it as an external dependency.
WARN Build is done with some warnings:
- Inlined implicit external #app
ERROR Exiting with code (1). You can change this behavior by setting failOnWarn: false .
Since AuthStorage.ts is not using any import from #app anymore, I don't know why it still throws this error.
=====
Operating System: Darwin
Node Version: v18.16.0
Nuxt Version: 3.8.2
CLI Version: 3.9.1
Nitro Version: 2.8.1
Package Manager: pnpm@8.15.0
Builder: -
User Config: -
Runtime Modules: -
Build Modules: -
The text was updated successfully, but these errors were encountered:
However, I think this is a bug, should be fixed in the module builder itself, and the docs should show an example how to custom the build config as well.
I created a module https://github.com/trandaison/nuxt-3-auth, the playground is working perfectly.
However, when I run
npm run prepack
, I got this errorSince
AuthStorage.ts
is not using any import from#app
anymore, I don't know why it still throws this error.=====
Darwin
v18.16.0
3.8.2
3.9.1
2.8.1
pnpm@8.15.0
-
-
-
-
The text was updated successfully, but these errors were encountered: