All folders and files are available here: https://github.com/Altazavr/B-production.
When I try to build Storybook, I get the following error:
npm run storybook:build
Error:
ERR! => Failed to build the preview
ERR! Module not found: Error: "./Counter" is not exported under the conditions ["import","module","webpack","production","browser"] from package C:\Users\User\Desktop\B-production\node_modules\entities (see exports field in C:\Users\User\Desktop\B-production\node_modules\entities\package.json)
Note: ./Counter is a file inside the entities package, and everything looks clean. I don’t understand why this error occurs.
You can also check src/app/providers/StoreProvider/config/store.ts.
To reproduce the issue:
Clone the repo or copy the folder.
Run
npm install.Run
npm run storybook:build.
Also, there is a commit before the last one where Storybook worked successfully.
Can anyone help me fix this?