incompatible with redux-saga? (module concatenation issue?)
See original GitHub issueI’m trying to migrate from next.js / webpack over to parcel-bundler.
However there’s one issue I can’t seem to find a solution for.
After switching from webpack to parcel I’m getting the following error:
Uncaught TypeError: (0 , _reduxSaga2.default) is not a function
see problem & solution for webpack here: https://github.com/redux-saga/redux-saga/issues/1346
in webpack if you turn off optimization.concatenateModules: true
for development it’ll work fine. Is there a similar option for parcel?
To make my problem even harder to solve. The redux-saga issue isn’t in my code but a node_module we’re using react-admin
. So I can’t do a dirty workaround with importing/using sagas in a different way either.
💻 Code Sample
see this issue for more information: https://github.com/redux-saga/redux-saga/issues/1346
This is the specific module that’s failing: https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/createAdminStore.ts
🌍 Your Environment
“parcel-bundler”: “^1.12.4”,
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
I’m not using any experimental stuff. I’m just running
export NODE_OPTIONS=--max-old-space-size=8192; parcel ./src/index.html --port 3000
Is there a way to turn tree-shaking off in parcel?
Closing due to inactivity