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.

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

github_iconTop GitHub Comments

1reaction
BryanGrezeszakcommented, Nov 25, 2016

Thanks, and thanks for finding/bringing up the issue.

0reactions
BryanGrezeszakcommented, Nov 25, 2016

@eek - v5.0.3 should be good to go to work with either var Reflux = require('reflux'); style importing or import Reflux from 'reflux'; style importing.

Read more comments on GitHub >

github_iconTop 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 >

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