Import Reflux from 'reflux' no longer working
See original GitHub issue@BryanGrezeszak unfortunately the last change in reflux-core made our website no longer usable.
We’re doing:
import Reflux from 'reflux';
const UserActions = Reflux.createActions(['blab', 'blabla']);
export default UserActions;
I get Cannot read property 'createActions' of undefined
, that’s because Webpack compiles the import Reflux from 'reflux'
into reflux.default where default does not exists, so createActions no longer exists.
It’s probably from the change in reflux-core
, because of the removal of export default Reflux. Can we do anything about it? 😄 Like put it back? 😃)
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
What to Do if Your Acid Reflux Medication Is Not Working ...
Acid reflux medication not working effectively? Try this instead… · Lose weight. · Wear loose-fitting clothes. · Elevate your head when lying down....
Read more >Reflux: component does not get the triggered event from store
My question: Why using ImageStore.orderImage(TODO 1 in the component.jsx) does not work: this.onChange will not be triggered, while both ...
Read more >What To Do When Heartburn Meds Stop Working
Lose weight · Avoid triggers like chocolate, alcohol, spicy foods, coffee, mint, and tomato based foods · Raise the head of your bed...
Read more >Reflux Therapy - UC Davis Center for Voice and Swallowing
CONCLUSIONS: Coffee promotes gastro-oesophageal reflux, but is not associated ... Alginates work rapidly, are long lasting, inexpensive, and have no known ...
Read more >Influence of working in auto factory on gastroesophageal ...
The prevalence of GERD in the rotatory shift was more than the fixed shift. Smoking, family history of gastrointestinal cancers and peptic ulcer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, and thanks for finding/bringing up the issue.
@eek - v5.0.3 should be good to go to work with either
var Reflux = require('reflux');
style importing orimport Reflux from 'reflux';
style importing.