I am working on several React projects and would like to create a shared dependency that would display their React components in isolation, similar to Storybook.
I would like:
I've tried ejecting and changing the weback config file (removing the module scope plugin) and adding a loader that would compile files from two or three folders above, but I always get the same error:
You attempted to import ... which falls outside of the project src/ directory.
Is there an easy way to enable compiling outside of src?
My company has used Lerna to create a Monorepo. Our use case was almost identical to yours, if I'm understanding yours correctly.
Setting up Lerna wasn't super easy at first. We used a Yeoman generator to scaffold it, I think (but we might have ended up doing it manually in the end; I don't remember.)
I found this article talking about some of this stuff.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.