-
Notifications
You must be signed in to change notification settings - Fork 13
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
1052 upgrade storybook library dependencies #1208
Conversation
… (except blob). Updates to stories to make storybook 7 compliant.
@Jura @theadamparker - Is there anything that needs to be done for cloudflare or chromatic to establish the dev environment for the updates? I can't see the logs, and the errors I do see are just general failings. |
@paboden , this is the error from Cloudflare build:
Full log is here: Chromatic build is failing on |
… (except blob). Updates to stories to make storybook 7 compliant.
…com:undp/design-system into 1052-upgrade-storybook-library-dependencies
…ht default value and control type for Content card (with and without image)
@theadamparker @Jura - This is ready for review. The biggest thing you will notice is how the Canvas and Docs tabs are gone, and the elements are divided into the Doc and 'Element' in the left sidebar. That is from a fundamental structure change from Storybook 6 to 7. Storybook has no plans to change that according to some of the issue queues. In Chrome (and chrome based browsers) the favicon falls back to the default storybook icon. This is a bug in storybook and should be fixable in future updates. It displays the proper blue favicon in Firefox, Safari, and other non Chrome based browsers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paboden , please merge most current develop branch head and resolve conflicts - there was an update in package version and some stories have been updated in course of other tickets.
I'm also getting an error trying to start Storybook locally from this branch. After dependencies install and build running yarn storybook
throws following error:
PS D:\dev\projects\design-system> yarn storybook
yarn run v1.22.19
$ storybook dev -p 6007
@storybook/cli v7.0.18
info Found existing addon "@storybook/addon-docs", skipping.
info Found existing addon "@storybook/addon-actions", skipping.
info Found existing addon "@storybook/addon-docs", skipping.
info Found existing addon "@storybook/addon-actions", skipping.
info => Serving static files from ./.\stories\assets at /
info => Starting manager..
WARN You (or an addon) are using the 'config' preset field. This has been replaced by 'previewAnnotations' and will be removed in 8.0
info Addon-docs: using MDX1
info => Using implicit CSS loaders
info => Using default Webpack5 setup
<i> [webpack-dev-middleware] wait until bundle finished
<i> [webpack-dev-middleware] wait until bundle finished: /__webpack_hmr
99% end closing watch compilationWARN Force closed preview build
ModuleBuildError: Module build failed: UnhandledSchemeError: Reading from "D:devprojectsdesign-system
eact" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "d:" URIs.
at D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:625:32
at Hook.eval [as callAsync] (eval at create (D:\dev\projects\design-system\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\dev\projects\design-system\node_modules\tapable\lib\Hook.js:15:15)
at Object.processResource (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:621:42)
at processResource (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:200:13)
at iteratePitchingLoaders (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:160:12)
at runLoaders (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:359:3)
at NormalModule._doBuild (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:613:5)
at NormalModule.build (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:731:17)
at D:\dev\projects\design-system\node_modules\webpack\lib\Compilation.js:955:17
at NormalModule.needBuild (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:973:14)
at Compilation._buildModule (D:\dev\projects\design-system\node_modules\webpack\lib\Compilation.js:937:13)
at D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:266:14
at Hook.eval [as callAsync] (eval at create (D:\dev\projects\design-system\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:6:1)
at AsyncQueue._startProcessing (D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:256:28)
at AsyncQueue._ensureProcessing (D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:242:17)
at processImmediate (node:internal/timers:466:21)
at processResult (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:569:23)
at D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:647:9
at D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:361:14
at D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:202:16
at D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:625:22
at Hook.eval [as callAsync] (eval at create (D:\dev\projects\design-system\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\dev\projects\design-system\node_modules\tapable\lib\Hook.js:15:15)
at Object.processResource (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:621:42)
at processResource (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:200:13)
at iteratePitchingLoaders (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:160:12)
at runLoaders (D:\dev\projects\design-system\node_modules\loader-runner\lib\LoaderRunner.js:359:3)
at NormalModule._doBuild (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:613:5)
at NormalModule.build (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:731:17)
at D:\dev\projects\design-system\node_modules\webpack\lib\Compilation.js:955:17
at NormalModule.needBuild (D:\dev\projects\design-system\node_modules\webpack\lib\NormalModule.js:973:14)
at Compilation._buildModule (D:\dev\projects\design-system\node_modules\webpack\lib\Compilation.js:937:13)
at D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:266:14
at Hook.eval [as callAsync] (eval at create (D:\dev\projects\design-system\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:6:1)
at AsyncQueue._startProcessing (D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:256:28)
at AsyncQueue._ensureProcessing (D:\dev\projects\design-system\node_modules\webpack\lib\util\AsyncQueue.js:242:17)
at processImmediate (node:internal/timers:466:21)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
info Found existing addon "@storybook/addon-docs", skipping.
info Found existing addon "@storybook/addon-actions", skipping.
error Command failed with exit code 1.
As you can see it might be pertinent to the platform (I'm on windows), but the goal here is to create universal build which will work across all platforms as it does in previous version. If you don't have windows workstation for tests I can work with you on that somehow.
And FYI - yarn build
works just fine
# Conflicts: # .storybook/main.js # package-lock.json # stories/Atom/Icons/icons.scss # stories/Components/Forms/InputFields/InputFields.stories.mdx # stories/Components/Navigationcomponents/Mainnavigation/CountrySiteHeader/CountrySiteHeader.stories.mdx # stories/Components/Navigationcomponents/Mainnavigation/GlobalHeader/GlobalHeader.stories.mdx # stories/Components/Navigationcomponents/Menu/Menu.stories.mdx # stories/Documentation/Intro.stories.mdx # stories/Templates/GenericPage/generic-page.scss # stories/Templates/ProjectPage/project-page.scss # yarn.lock
…ml printing extra characters.
@theadamparker @Jura |
@paboden, unfortunately Dev set up on Windows is still broken due to the @storybook/mdx1-csf plugin issue, it's been reported in the plugin repo two months ago: storybookjs/mdx1-csf#24. I can attest that I'm experiencing exactly the same, both with yarn and npm with clean repo copies. |
@Jura I'm bringing in another team member with access to a windows machine to help see if we can get around this issue/plugin. |
@paboden , any progress here? |
…library-dependencies-windows fix: directory paths fix on windows
Hi @Jura, It looks like @arlina-espinoza was able to figure out a solution to the windows issue. Can you retest the current state of this PR and see if it builds on your machine? Once we confirm its working for you, I will resolve the existing merge conflict, and then we will test again to double check no other updates break this fix. |
Hi @paboden , looking good! Probably patch won't be necessary after this PR is merged: storybookjs/mdx1-csf#27, but we can deal with it ourselves since we know what the problem is. Please continues with conflict resolution so we can finalize the merge. |
… really like backtick ` marks to setup inline code. Replaced with bold callouts and better styles of codeblocks in documentations.
# Conflicts: # package-lock.json # package.json # yarn.lock
Hi @Jura I have all the merge conflicts figured out. This is ready for one last double check to make sure everything runs on windows. After that it's ready to go into 'develop'. |
Both Yarn and NPM workflows are working fine now, merging |
#1052
Initial PR to start checking the Storybook 7 upgrade.
Known issues: