jquense / react-big-calendar

gcal/outlook like calendar component
http://jquense.github.io/react-big-calendar/examples/index.html
MIT License
7.85k stars 2.23k forks source link

(plugin size-snapshot) Error: ModuleNotFoundError when building react-big-calendar #2063

Open jodibooksHQ opened 2 years ago

jodibooksHQ commented 2 years ago

Do you want to request a feature or report a bug?

bug

What's the current behavior?

I've forked your repository, checked out the master branch and applied some changes so that I can test the fix proposed at https://github.com/jquense/react-big-calendar/pull/1066

I want to run yarn build now and temporarily commit lib and dist folders so that I can use my forked branch in my application. However, yarn build does not work.

First, I've had to install cross-env and change build:umd to "cross-env BABEL_ENV=esm yarn rollup -c", because BABEL_ENV does not exist.

Next, I get error (plugin size-snapshot) Error: ModuleNotFoundError: Module not found: Error: Can't resolve './BackgroundWrapper.js' in '/'. I have not been able to resolve this.

What's the expected behavior?

Master branch builds properly out of the box.

jodibooksHQ commented 2 years ago

This seems to be a Windows issue. When building on Linux, everything works as expected.