question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

incompatible with redux-saga? (module concatenation issue?)

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MarkLyckcommented, Nov 6, 2019

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?

0reactions
mischniccommented, Jan 16, 2020

Closing due to inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Reference - Redux-Saga
You can check inside the finally block if a Saga was cancelled by issuing a yield cancelled() . Cancellation propagates downward to child...
Read more >
API Reference | redux-saga-ie8
Creates a Redux middleware and connects the Sagas to the Redux Store ... Then in our main module, we will use the method...
Read more >
Can I Have Redux-Saga and Redux-Thunk Working Together?
No worry, No conflict. Indeed, redux-thunk will intervenes only when the action is a function not a literal object. There shouldn't be any ......
Read more >
Apache Camel Development Guide Red Hat Fuse 7.9
This guide describes how to develop JBoss Fuse applications with Apache Camel. It covers the basic building blocks, enterprise integration patterns, ...
Read more >
amplify-redux-auth - dist - index.es.js.map - UNPKG
node_modules/@redux-saga/core/dist/redux-saga-effects.esm.js",". ... 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found