You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 8.5.0-alpha.15 to 8.5.0-alpha.17. Storybook gives following error in browser:
TypeError: importers[path] is not a function
at un2.importFn (http://localhost:4400/@id/__x00__/virtual:/@storybook/builder-vite/storybook-stories.js:285:31)
at un2.loadEntry (http://localhost:4400/@fs/Users/Shared/repos/myapp/node_modules/.cache/storybook/e32bb427adf737087a4b39f7f748149d183fe2f95231b7a3c1529f5231d4c8d3/sb-vite/deps/storybook_internal_preview_runtime.js?v=4e363891:7627:12)
at async bn2.prepare (http://localhost:4400/@fs/Users/Shared/repos/myapp/node_modules/.cache/storybook/e32bb427adf737087a4b39f7f748149d183fe2f95231b7a3c1529f5231d4c8d3/sb-vite/deps/storybook_internal_preview_runtime.js?v=4e363891:8521:49)
at async Un2.renderSelection (http://localhost:4400/@fs/Users/Shared/repos/myapp/node_modules/.cache/storybook/e32bb427adf737087a4b39f7f748149d183fe2f95231b7a3c1529f5231d4c8d3/sb-vite/deps/storybook_internal_preview_runtime.js?v=4e363891:8731:7)
at async Un2.selectSpecifiedStory (http://localhost:4400/@fs/Users/Shared/repos/myapp/node_modules/.cache/storybook/e32bb427adf737087a4b39f7f748149d183fe2f95231b7a3c1529f5231d4c8d3/sb-vite/deps/storybook_internal_preview_runtime.js?v=4e363891:8640:8)
at async Un2.initialize (http://localhost:4400/@fs/Users/Shared/repos/myapp/node_modules/.cache/storybook/e32bb427adf737087a4b39f7f748149d183fe2f95231b7a3c1529f5231d4c8d3/sb-vite/deps/storybook_internal_preview_runtime.js?v=4e363891:8066:39)
It seems that path argument doesn't match with the generated importers properties in storybook-stories.js
e.g. path is ./libs/ui/themes/src/lib/Typography.stories.tsx when corresponding property key is ../../libs/ui/themes/src/lib/Typography.stories.tsx
There is commit bd881bcd3dbbb9e0e5e992755569471e0ef28a95 which is working fine, and latest commit where storybook upgraded to 8.5.0-alpha.17. Where getting importers[path] is not a function error.
Repro steps:
git clone https://github.com/diginikkari/sb-issue30147
cd sb-issue30147
pnpm install
pnpm nx run MyApp:storybook
Describe the bug
After upgrading from 8.5.0-alpha.15 to 8.5.0-alpha.17. Storybook gives following error in browser:
It seems that
path
argument doesn't match with the generatedimporters
properties in storybook-stories.jse.g. path is
./libs/ui/themes/src/lib/Typography.stories.tsx
when corresponding property key is../../libs/ui/themes/src/lib/Typography.stories.tsx
Reproduction link
https://github.com/diginikkari/sb-issue30147
Reproduction steps
No response
System
Additional context
My repository is NX monorepo, where there is single storybook app.
The text was updated successfully, but these errors were encountered: