hiroppy / fusuma

✍️ Fusuma makes slides with Markdown easily.
https://hiroppy.github.io/fusuma
5.41k stars 194 forks source link

Can't resolve packages when node_modules are symlinked #386

Open jcayzac opened 3 years ago

jcayzac commented 3 years ago

Info

Type

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 commented 3 years ago

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

hiroppy commented 3 years ago

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