So I try to create a custom private library by using dts storybook template with yarn 3, what I do is creating dts storybook template and I use that repo only for storybook. Further more I push it that repo to git as private and I call that repo in my main projects as dependency like :
"project-name": "git+ssh://......" ,
When I do yarn install , the project comes into external libraries :
but when I call one of story in this way I have an error like :
Module not found: Error: Can't resolve 'further-react-common' in '/Users/macbookpro/Projects/further-storybook-ts/src'
and
TS2307: Cannot find module 'further-react-common' or its corresponding type declarations.
I think it's a building error, when I install the dts-storybook projects into my main project it comes without building
So I try to create a custom private library by using dts storybook template with yarn 3, what I do is creating dts storybook template and I use that repo only for storybook. Further more I push it that repo to git as private and I call that repo in my main projects as dependency like : "project-name": "git+ssh://......" , When I do yarn install , the project comes into external libraries :
but when I call one of story in this way I have an error like :
Module not found: Error: Can't resolve 'further-react-common' in '/Users/macbookpro/Projects/further-storybook-ts/src' and TS2307: Cannot find module 'further-react-common' or its corresponding type declarations.
I think it's a building error, when I install the dts-storybook projects into my main project it comes without building