-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 when extending layer from GitHub with install: true
#26479
Comments
Related #27038 (comment). OP says the |
Same issue, but I am seeing that also, even if you install the dependencies on the main app, the layer configuration is not extended. I am using apollo client as a layer, to use it as a gateway, plus authentication through it. Somebody on the community suggested to use modules instead as a workaround. |
Same issue here whit nuxt Pinia. Even with the |
I made this work, at least on my local environment. In my extended application nuxt.config.ts I disabled the ssr
And in the /node_modules/@nuxt/kit/dist/index.mjs file, I added this line to the loadNuxtModuleInstance function
To resolve the layers on the moduleDirs, to be installed. Probably there is a better way to solve the issue without modifying the nuxt core files, but I'm a noobie with Node frameworks. Hope this helps on the issue solving |
/cc @danielroe i haven't check nuxt impl yet but are are already pushing layers ( |
Thanks @pi0 and @danielroe for the quick solution on this issue. |
I have a rather big codebase and I want to migrate to adopting nuxt layers, made two components work, figured I may just copy all of them to the "base" layer. |
Environment
Shared for Layer and Main App
Layer
Main App
Reproduction
Layer: https://github.com/MuhammadM1998/nuxt-layers-repro
Main App: https://github.com/MuhammadM1998/nuxt-layers-repro-main-app
Describe the bug
Reproduction
pnpm i
Expected Behavior
Actual Behavior
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: