doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.55k stars 1.46k forks source link

ENOENT when using yarn 2 (since node_modules doesn’t exist) #1695

Open flying-sheep opened 2 years ago

flying-sheep commented 2 years ago

Yarn 2 doesn’t use node_modules, so the following line doesn’t work:

https://github.com/doczjs/docz/blob/5bdca48720e4c67f87259f49f49d294cf6a3dea7/core/docz-core/src/bundler/machine/services/exec-dev-command.ts#L37

nicolo-ribaudo commented 2 years ago

As a workaround, you could enable node_modules in Yarn 2: https://yarnpkg.com/configuration/yarnrc#nodeLinker