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
info @storybook/react v6.0.5
info
info => Loading presets
WARN Failed to load preset: {"name":"@storybook/source-loader","type":"presets"} on level 1
ERR! TypeError: Cannot read property 'query' of undefined
ERR! at getOptions (/[REDACTED]/node_modules/loader-utils/lib/getOptions.js:6:31)
ERR! at readAsObject (/[REDACTED]/node_modules/@storybook/source-loader/dist/dependencies-lookup/readAsObject.js:25:45)
Expected behavior
No error, story source code loads.
Screenshots
The text was updated successfully, but these errors were encountered:
My apologies-- I may have mis-read the documentation. I think my configuration listed above is incorrect. I've since updated my configuration. Most of my stories are now populating with source code.
@storybook/addon-storysource uses @storybook/source-loader under the hood. If you're overriding webpack configs (e.g defining your own config.module.rules array, you'll need to setup @storybook/source-loader yourself.
Describe the bug
An auto-generated storybook with
@storybook/source-loader
prints this error message and sources do not load, and no 'Story' tab appears.To Reproduce
Demo Repo: https://github.com/petermikitsh/sb-source-error (just run
yarn start-storybook
)Steps to reproduce the behavior:
.storybook/main.js:
Expected behavior
No error, story source code loads.
Screenshots
The text was updated successfully, but these errors were encountered: