Open martinoss opened 6 years ago
guess this is related https://github.com/webpack/webpack/issues/7499
Could be a problem with sideEffects
of webpack treeshaking...
@aze3ma Did you have any chance to look into this?
@martinoss
Unfortunately there is no plan/time to maintain react-app-rewired
:
https://github.com/timarney/react-app-rewired/issues/162#issuecomment-417872507
Guess it's caused by create-react-app-typescript
/react-scripts-ts
https://github.com/wmonk/create-react-app-typescript/issues/390
@AndyOGo Iam sorry for being that busy I will clone it and try to fix it asap.
I've got a strange problem using sass and code splitting, probably with nesting only.
What happened is, my imported component (using loadable) did not load in production build. I din't get any kind of error or indication what's wrong.
Structure is as follows:
When I import the sass file person-list.scss in PersonList.tsx it requires me to import a (dummy) sass file in PersonsRoot.tsx too, otherwise the component PersonsList will not get loaded.
This is what I use in my project: create-react-app (react-scripts-ts), react-router 4, redux 4, react-app-rewired, react-app-rewire-scss
Here I uploaded a project to github for easy reproduction:
Am I doing something wrong or is it maybe a bug?
I'have also posted this issue on stackoverflow
Update: Webpack seems to have an array of
545
modules but tries to access the element with index545
which is of course undefined (0 based index).TypeError: Cannot read property 'call' of undefined