Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Can't resolve packages when node_modules are symlinked #386

Open
1 of 2 tasks
jcayzac opened this issue Feb 16, 2021 · 2 comments
Open
1 of 2 tasks

Can't resolve packages when node_modules are symlinked #386

jcayzac opened this issue Feb 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@jcayzac
Copy link

jcayzac commented Feb 16, 2021

Info

  • Operating System: macOS 11.2
  • Node Version: 15.6.0
  • Browser Name and Version: n/a

Type

  • bug
  • feature request

For Bugs

When dependencies are symlinked, e.g. when using PNPM, packages cannot get resolved.

Expected Behavior

Package resolution shouldn't be layout-dependent.

Actual Behavior

Package resolution breaks when dependencies aren't organized in legacy layout.

How can we reproduce the behavior?

$ pnpm install -D fusuma
$ pnpx fusuma init
$ pnpx fusuma start

 ERROR  Failed to compile with 3 errors                                                                                                      11:14:34 AM

 error

Module not found: Error: Can't resolve 'babel-loader' in '/Users/julien.cayzac/Desktop/presentation'

 error

Module not found: Error: Can't resolve 'regenerator-runtime' in '/Users/julien.cayzac/Desktop/presentation'

 error

Module not found: Error: Can't resolve 'webpack-hot-middleware/client?reload=true' in '/Users/julien.cayzac/Desktop/presentation'

 start  Serving on http://localhost:8080
@hiroppy
Copy link
Owner

hiroppy commented Feb 16, 2021

thank you for reporting. I haven't checked pnpm yet, I'll fix it.

@hiroppy hiroppy added the bug Something isn't working label Feb 16, 2021
@hiroppy
Copy link
Owner

hiroppy commented Feb 16, 2021

hm, it seems the same issue(webpack/webpack#5087)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants