fusuma icon indicating copy to clipboard operation
fusuma copied to clipboard

Can't resolve packages when node_modules are symlinked

Open jcayzac opened this issue 4 years ago • 2 comments

Info

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

Type

  • [x] 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

jcayzac avatar Feb 16 '21 02:02 jcayzac

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

hiroppy avatar Feb 16 '21 02:02 hiroppy

hm, it seems the same issue(https://github.com/webpack/webpack/issues/5087)

hiroppy avatar Feb 16 '21 03:02 hiroppy