Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Rx2.default is undefined #481

Closed
VinceOPS opened this issue Dec 2, 2017 · 2 comments
Closed

_Rx2.default is undefined #481

VinceOPS opened this issue Dec 2, 2017 · 2 comments

Comments

@VinceOPS
Copy link

VinceOPS commented Dec 2, 2017

PACKAGES

react-intl-cra v0.2.9

node v8.6.0
create-react-app v1.4.1
react-scripts v1.0.17
React v16.2.0

Code to reproduce the issue:

Running the script (even without parameter) is enough to produce this error:

var srcPattern$ = _Rx2.default.Observable.of(srcPattern);

TypeError: Cannot read property 'Observable' of undefined

Expected behavior:
Works.

Actual behavior:
Does not work.

Versions of packages used: v0.2.9

Fix:
Replace in _interopRequireDefault:

return obj && obj.__esModule ? obj : ...

With

return obj && obj.__esModule && obj.default ? obj : ...
@evenchange4
Copy link
Member

evenchange4 commented Dec 4, 2017

It is a bug of Rxjs(ReactiveX/rxjs#3155) and I locked the version of rxjs via #482 as a workaround.

This should be fixed now on react-intl-cra@0.2.10. Thanks for reporting! ;)

@evenchange4
Copy link
Member

Close it. I moved react-intl-cra to standalone repo. Please feel free to create issues there if the problem still occurs after v0.2.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants