3.7.x Layer could not resolve dependencies
Environment
- Operating System: Darwin
- Node Version: v18.17.1
- Nuxt Version: 3.7.4
- CLI Version: 3.9.0
- Nitro Version: 2.6.3
- Package Manager: [email protected]
- Builder: -
- User Config: modules, vite, ssr, runtimeConfig
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
Reproduction
3.7.4 (not working): https://stackblitz.com/edit/github-ohn9fa?file=base%2Fpackage.json 3.6.5 (working): https://stackblitz.com/edit/github-ohn9fa-bqmshm?file=project%2Fpackage.json
Steps:
- npm install "base" folder dependencies
- npm install "project" folder dependencies
- npm run dev in "project" folder
Describe the bug
I have a "Base" Nuxt project with components, configs, etc shared with other projects. Some of base components are dependent on external libraries. One of is "splidejs" slider used in reproduction examples.
Up until Nuxt 3.7 base components were using dependencies from base project so you don't have to install the same dependencies for each project. Since 3.7 this is no longer the case. Dependencies could not be resolved if not installed in base and every other project even though it is primarily used in a base component
Additional context
No response
Logs
No response
Start a new pull request in StackBlitz Codeflow.
@danielroe what's current progress on this?
Any update ? Still suck with that 😖
@v0id-4lpz use modules, they are reliable for now :)
@v0id-4lpz use modules, they are reliable for now :)
I'll try that, thanks!
Still having this issue on 3.11 version. Any updates on this?
You'r welcome :)