Closed eric-personal closed 6 years ago
It looks like Gatsby now uses __PATH_PREFIX__
internal in any environment, so it should be mocked inside .storybook/config.js
like this:
global.__PATH_PREFIX__ = ''
// window.___push was renamed to window.___navigate, has to do this renaming too or storybook would error on clicking links
window.___navigate = pathname => {
action('NavigateTo:')(pathname)
}
Fixed in #8 for future users. In case anyone else encounters this, please apply the changes I mentioned above
Thanks for reporting :heart: and please reopen in case these changes doesn't fix it for you!
Thanks for posting this starter. When running storybook http://localhost:6006/ I get error for header and layout.stories.js and header.stories.js
I'm getting error :
Any idea why this might be happening ?