nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

3.7.x Layer could not resolve dependencies

Open milelazar opened this issue 2 years ago • 6 comments

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:

  1. npm install "base" folder dependencies
  2. npm install "project" folder dependencies
  3. 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

milelazar avatar Sep 28 '23 09:09 milelazar

@danielroe what's current progress on this?

avxkim avatar Mar 12 '24 08:03 avxkim

Any update ? Still suck with that 😖

v0id-4lpz avatar Apr 06 '24 13:04 v0id-4lpz

@v0id-4lpz use modules, they are reliable for now :)

avxkim avatar Apr 06 '24 13:04 avxkim

@v0id-4lpz use modules, they are reliable for now :)

I'll try that, thanks!

v0id-4lpz avatar Apr 06 '24 13:04 v0id-4lpz

Still having this issue on 3.11 version. Any updates on this?

aurelioth avatar May 17 '24 16:05 aurelioth

You'r welcome :)

aurelioth avatar May 24 '24 16:05 aurelioth