Skip to content
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 loading issues (yes, I know, again) #1027

Closed
zeroasterisk opened this issue May 13, 2017 · 4 comments
Closed

css loading issues (yes, I know, again) #1027

zeroasterisk opened this issue May 13, 2017 · 4 comments

Comments

@zeroasterisk
Copy link

Sorry, I suspect you're sick of these issues, especially since they are likely not the fault of storybook...

If you take a look at this simple example:
https://zeroasterisk.github.io/react-eltoro-ui-budget

I loaded CSS from CDN via head.html (because that's what always works for me)

but 1 CSS file didn't exist on a CDN, so I had to import it, and I couldn't get it to work...

https://github.com/zeroasterisk/react-eltoro-ui-budget/blob/master/src/stories/index.js#L5-L10

// this isn't importing - getting funky errors
// import 'react-widgets/dist/css/react-widgets.css';
//   getting:
//   ERROR in ./~/css-loader!./~/raw-loader!./~/react-widgets/dist/css/react-widgets.css
//    Module build failed: Unknown word (1:1)
//    > 1 | module.exports = ".rw-btn,.rw-input{color:inherit;font:inherit;margin:0}

Here's the webpack config, user override:
https://github.com/zeroasterisk/react-eltoro-ui-budget/blob/master/.storybook/user/modify_webpack_config.js


any advice? I've read through your docs several times and no luck.

@shilman
Copy link
Member

shilman commented May 13, 2017

@zeroasterisk where is react-widgets set up? I don't see it as a dependency in package.json.

@zeroasterisk
Copy link
Author

@shilman for some reason, I thought npm i --save-peer react-widgets would work... oh well, I fixed...

@shilman
Copy link
Member

shilman commented May 13, 2017

Glad to hear you got it working! Closing for now 😄

@shilman shilman closed this as completed May 13, 2017
@zeroasterisk
Copy link
Author

@shilman sorry, sadly that wasn't a resolution, only something missing from my example. The original problem remains, but now you can recreate it easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants