-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Upgrade Storybook from 6.4.20 to 6.5.9 #120
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Preview is readyThis pull request generated a Preview👀 Preview: https://sfj-bdc878f--nextjs.preview.vtex.app |
Lighthouse ReportsHere are the Lighthouse reports of this Pull Request📝 Based on commit bdc878f
|
danzanzini
approved these changes
Jun 14, 2022
eduardoformiga
approved these changes
Jun 14, 2022
filipewl
pushed a commit
to vtex-sites/gatsby.store
that referenced
this pull request
Jun 15, 2022
Please see vtex-sites/nextjs.store#120. Differently from the NextJS's version, after the automatic upgrade, the `build-storybook` command failed: ``` info => Using default Webpack5 setup 92% sealing asset processing TerserPlugininfo => Manager built (1 min) ERR! => Failed to build the preview ERR! Module parse failed: Unexpected token (26:4) ERR! You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders ERR! | ERR! | return ( ERR! > <React.Fragment> ERR! | {finalData && render(finalData)} ERR! | {!finalData && <div>Loading (StaticQuery)</div>} ERR! Error: => Webpack failed, learn more with --debug-webpack ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:234:62 ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/HookWebpackError.js:68:3 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at Cache.shutdown (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Cache.js:150:23) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1225:15 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at Compiler.close (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1218:23) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:233:20 ERR! at finalCallback (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:441:32) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:458:13 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:23:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at onCompiled (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:456:21) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1196:17 ERR! Error: => Webpack failed, learn more with --debug-webpack ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:234:62 ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/HookWebpackError.js:68:3 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at Cache.shutdown (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Cache.js:150:23) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1225:15 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at Compiler.close (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1218:23) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:233:20 ERR! at finalCallback (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:441:32) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:458:13 ERR! at Hook.eval [as callAsync] (eval at create (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:23:1) ERR! at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/filipewl/Workspace/gatsby.store/node_modules/tapable/lib/Hook.js:18:14) ERR! at onCompiled (/Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:456:21) ERR! at /Users/filipewl/Workspace/gatsby.store/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compiler.js:1196:17 info => Loading presets error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` I didn't fully understand the error, but after [applying](b65baa1) [this **Manual configuration**](https://www.gatsbyjs.com/docs/how-to/testing/visual-testing-with-storybook/#manual-configuration) from Gatsby's Documentation, the build worked. The specific line to transpile Gatsby module did the trick. I included the `babel-plugin-remove-graphql-queries` to prevent future errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
Upgrade Storybook to keep it up to date.
How does it work?
Just ran the recommended command
npx sb upgrade
.Output for this command:
How to test it?
Test the Storybook deploy preview link.
References