Not loading - "Loading source..." message
See original GitHub issueDescribe the bug I only see the “loading source…” text in the Storybook tab
.storybooks/webpack.config.js
To Reproduce `module.exports = function({ config }) { config.module.rules.push({ test: /.stories.jsx?$/, loaders: [require.resolve(‘@storybook/addon-storysource/loader’)], enforce: ‘pre’, });
return defaultConfig; };`
addons.js `import ‘@storybook/addon-actions/register’; import ‘@storybook/addon-links/register’; import ‘@storybook/addon-knobs/register’; import ‘storybook-addon-smart-knobs’; import ‘@storybook/addon-storysource/register’;
Folder structure
src /components /stories index.js
`
Expected behavior Expect to see the component code
Screenshots
System:
- OS: [Linux Mint]
- Browser: chrome]
- Framework: [React]
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:34 (8 by maintainers)
Top Results From Across the Web
Fix "Aw, Snap!" page crashes and other page loading errors
If you're getting the "Aw, Snap" error or another error code instead of a webpage, Chrome is having problems loading. You might also...
Read more >How to Fix the "Messages Failed to Load" Error on Discord for ...
1. Make Sure Discord Isn't Down ... Before you start tweaking any settings, ensure Discord isn't down first. Check the Discord status page...
Read more >Websites don't load - troubleshoot and fix error messages
First, let's figure out where the problem is · Open a new tab and check to see if you can load another website...
Read more >Browser console shows DevTools failed to load SourceMap ...
... shows DevTools failed to load SourceMap warning message In Jira ... DevTools failed to load source map: Could not load content for ......
Read more >"Parser Error Message: Could not load type" in Global.asax
MvcApplication'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="GodsCreationTaxidermy.Core ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Faced the same problem. I made it work with the following setup: .storybook/addons.js
.storybook/webpack.config.js
After that story source finally appeared in the storybook. Maybe this would help someone.
I was having the same issue and this configuration fixed it for me: