2.x releases of docz gives Module not found errors when trying to start it with docz dev.
To Reproduce
yarn to install dependencies.yarn workspace test-dev-1 start:docz to reproduce error.yarn workspace test-dev-2 start:docz to see it is working correctly with docz 1.xExpected behavior
I believe, I did not miss anything in migration guide and this should work correctly.
Environment
Additional context/Screenshots
Hello @mehmetcozdemir
Thank you for the neat problem repro 馃憤
I'm afraid currently the docz v2 package can't be used as a cli in a monorepo / workspacce (fixing that is on our backlog).
However, that doesn't mean that you can't use docz at all.
You can easily set docz up as a gatsby theme in a package in a monorepo.
Check out this example to see how to add docz to a gatsby app and to use docz in a mono-repo.
@rakannimer Thank you for fast response. I will just stay on 1.x I guess. If there is another issue for this bug, you can close this one. Otherwise I will be following here for updates. Thank you again.
Hey,
Can you try with the latest next version (v2.0.0-rc.55) ?
It should work, we've added an example (and e2e test) for adding docz in a single package in a monorepo here : https://github.com/doczjs/docz/tree/master/examples/monorepo-package
And another to add docz at the root of the monorepo here : https://github.com/doczjs/docz/tree/master/examples/monorepo
It is working correctly in reproduction repo. I also did a quick trial on my company repos and there seems to be no issue there too. Thank you for your time! :tada:
Edit: Mixed my company and personal accounts :man_facepalming: