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

Failed to load css file from module #40

Closed
cnadav opened this issue Mar 5, 2018 · 2 comments
Closed

Failed to load css file from module #40

cnadav opened this issue Mar 5, 2018 · 2 comments

Comments

@cnadav
Copy link

cnadav commented Mar 5, 2018

Hi,

Im trying to add 'react-big-calendar' to your boilerplate project, but getting the following error:

Module parse failed: C:\source\repos\KvutzatYavne\node_modules\react-big-calendar\lib\css\react-big-calendar.css Unexpected token (1:0) You may need an appropriate loader to handle this file type. | .rbc-btn { | color: inherit; | font: inherit;

maybe adding webpack will solve this issue

@tima101
Copy link
Member

tima101 commented Mar 5, 2018

@cnadav I have not tried importing css files in our boilerplate app but here is an example that does it, you have to configure next.config.js file:
https://github.com/zeit/next.js/tree/canary/examples/with-global-stylesheet

If you extend boilerplate, I recommend checking out Next.js examples:
https://github.com/zeit/next.js/tree/canary/examples

@cnadav
Copy link
Author

cnadav commented Mar 6, 2018

thank you @tima101, the correct example is this one:
https://github.com/zeit/next.js/tree/canary/examples/with-global-stylesheet-simple

@cnadav cnadav closed this as completed Mar 6, 2018
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