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

Can't get through "Getting Started" with create-react-app #207

Closed
hoclun-rigsep opened this issue Jun 5, 2021 · 2 comments · Fixed by #209
Closed

Can't get through "Getting Started" with create-react-app #207

hoclun-rigsep opened this issue Jun 5, 2021 · 2 comments · Fixed by #209

Comments

@hoclun-rigsep
Copy link

Is there a workaround available for using this in a React Native app created with Expo?

This may be relevant: facebook/metro#535

@hoclun-rigsep
Copy link
Author

hoclun-rigsep commented Jun 6, 2021

Now I find that I cannot run the 'Getting Started' instructions from the website with a fresh create-react-app—even if I eject first. I have fresh installs of node and npx on Debian 10 using NodeSource, and also on an unremarkable macOS environment. I run

npx create-react-app --use-npm --template cra-template-typescript my

Then I install as per the instructions:

npm i rxjs @react-rxjs/core

And add some minimal example code to App.tsx. The compiler says:

/node_modules/@react-rxjs/core/dist/core.es2017.mjs
Can't import the named export 'Observable' from non EcmaScript module (only default export is available)

I do apologize if I'm reporting something that is in no way specific to react-rxjs, or worse something specific to me (though I have minimally reproduced on two platforms now), but I thought you'd want to know that I was unable to get through "Getting Started."

I was playing with this library a couple weeks ago, so I'm going to see if I still have that code and can figure out what's changed.

@hoclun-rigsep hoclun-rigsep changed the title React Native Can't get through "Getting Started" with create-react-app Jun 6, 2021
@josepot
Copy link
Member

josepot commented Jun 7, 2021

Thanks a lot for opening this issue @hoclun-rigsep ! We just published a patch version that should address this issue. Please let us know if everything works as expected now.

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

Successfully merging a pull request may close this issue.

2 participants