React-big-calendar: Unable to resolve module 'react-big-calendar/lib/css/react-big-calendar.css

Created on 7 Mar 2018  路  7Comments  路  Source: jquense/react-big-calendar

I have tried every single solution has been stated here but did not find a way to get rid of this error. I am newbie to js and react environment. Is it something caused by web pack or might be related to how I load this?

Tried this import 'react-big-calendar/lib/css/react-big-calendar.css';
and tried this import '!style-loader!css-loader!react-big-calendar/lib/css/react-big-calendar.css' instead
Both throw the same error

All 7 comments

Any idea?? I really can't figure out what to do.

I don't know :( I would check that the file is in node_modules/react-big-calendar/lib/css/react-big-calendar.css, if not reinstall. If it is the problem is your webpack configuration. I'd suggest trying one of their support avenues like the discord channel

This should be pretty easy if you are using create-react-app. If you are rolling your own webpack then you need to make sure you are using the right loaders.

I'm having the same issue.
calendar-css-error

I don't think Calendar.css is a module

Hi,
Easiest way to solve that problem is to add the css file to your header :
<link href="https://cdn.jsdelivr.net/npm/[email protected]/lib/css/react-big-calendar.css" rel="stylesheet"/>

This hasn't been responded to from the original poster for sometime so I am going to close. Please refer to https://github.com/arecvlohe/rbc-starter as an example to help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

The-Oracle picture The-Oracle  路  3Comments

nirchernia picture nirchernia  路  3Comments

manutenfruits picture manutenfruits  路  3Comments

connercms picture connercms  路  3Comments

Hector26 picture Hector26  路  3Comments