Closed hoclun-rigsep closed 3 years ago
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.
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.
Is there a workaround available for using this in a React Native app created with Expo?
This may be relevant: https://github.com/facebook/metro/issues/535