-
-
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
CSS not being imported after update to 5.3.3 #9449
Comments
@JonnyPS did you figure it out? what was it? |
@JonnyPS: I tried to reproduce the problem with my Storybook running 5.3.3 but for me it's working fine. The CSS file is imported and the CSS is applied to the preview as expected. Compare your setup with mine below. SystemOS: macOS Mojave 10.14.6 NPM
|
Hello @shilman - sorry for the trouble, no bug, I just didn't have my styles setup correctly it would appear. However, I am having trouble with importing scss which i have opened a new ticket for - I have followed the docs but it doesn't seem to run the loaders. |
Describe the bug
CSS is not loading into Storybook
To Reproduce
Set up create-react-app, add storybook to it.
Add a file named test.css to the src/ dir.
Create a .storybook/preview.js file, add the following line:
Expected behavior
The styles from the css file to be applied to the storybook components
System:
System:
OS: macOS Sierra 10.12.6
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Binaries:
Node: 12.11.1 - ~/.nvm/versions/node/v12.11.1/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.11.3 - ~/.nvm/versions/node/v12.11.1/bin/npm
Browsers:
Chrome: 79.0.3945.117
Firefox: 60.7.2
Safari: 12.1.1
npmPackages:
@storybook/addon-a11y: ^5.3.3 => 5.3.3
@storybook/addon-actions: ^5.3.3 => 5.3.3
@storybook/addon-docs: ^5.3.3 => 5.3.3
@storybook/addon-info: ^5.3.3 => 5.3.3
@storybook/addon-knobs: ^5.3.3 => 5.3.3
@storybook/addon-links: ^5.3.3 => 5.3.3
@storybook/addon-viewport: ^5.3.3 => 5.3.3
@storybook/addons: ^5.3.3 => 5.3.3
@storybook/preset-create-react-app: ^1.5.1 => 1.5.1
@storybook/preset-scss: ^1.0.2 => 1.0.2
@storybook/react: ^5.3.3 => 5.3.3
The text was updated successfully, but these errors were encountered: