-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
v5.3.0-rc.12: Running build-storybook does not include scss files #9376
Comments
@shilman I managed to fix this, but only by making |
@liamross That's pretty bizarre -- thanks for letting me know. Labeling as "has workaround" and let's see what other folks say. |
I have a similar (?) issue with the 5.3.0 release version that I could pin down to the use of The following works. If I uncomment the
You think this is related? Otherwise I'll file a separate bug report. |
@arabold Thanks! I released |
Tried 5.3.1 and related updates and CSS imports work again. Thank you! However, the WebPack customization is not applied. When using Here're the versions I'm using:
|
Unfortunately I had to update my comment above. While CSS import works as expected now, the WebPack customization seems to be ignored. |
@arabold glad it's working again! AFAIK webpack customization is not possible in CRA |
@arabold @shilman the preset clears out any customisations that are set before it is loaded, but you should be able to make changes after. It's not something we officially support, but it should work. If you think this is not working correctly, please raise an issue on the preset (https://github.com/storybookjs/presets/issues/new) with a reproduction and I'll take a look! :) |
Describe the bug
When attempting to run
build-storybook
, it builds successfully, but it does not include any of thescss
style files, despite using the@storybook/preset-scss
. I have also tried custom webpack setup for scss compiling, but that was also unsuccessful. The site is built, it just has absolutely no style.It is also a TypeScript environment and has no problem with the TypeScript and tsx files.
It also works perfectly fine when running
start-storybook
, onlybuild-storybook
fails to work with scss files.To Reproduce
Steps to reproduce the behavior:
build-storybook
Expected behavior
Should include style files as css. This worked as intended before converting the files over to
main
,preview
etc.Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
preview.js
main.js
System:
OS: macOS Mojave 10.14.4
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Binaries:
Node: 12.13.1 - /usr/local/bin/node
Yarn: 1.19.2 - /usr/local/bin/yarn
npm: 6.12.1 - /usr/local/bin/npm
Browsers:
Chrome: 79.0.3945.117
Safari: 12.1
npmPackages:
@storybook/addon-actions: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/addon-docs: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/addon-info: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/addon-knobs: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/addon-viewport: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/addons: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/preset-scss: ^1.0.2 => 1.0.2
@storybook/preset-typescript: ^1.2.0 => 1.2.0
@storybook/react: ^5.3.0-rc.12 => 5.3.0-rc.12
@storybook/storybook-deployer: ^2.8.1 => 2.8.1
The text was updated successfully, but these errors were encountered: