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

React demo Can't import the named export 'b' from EcmaScript module #2

Closed
stahlmanDesign opened this issue Jul 26, 2019 · 8 comments
Closed
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@stahlmanDesign
Copy link

I'm trying to use Phaser with React.

I installed with npm install @ion-phaser/core --save and npm install @ion-phaser/react --save and then tried to run the code in this demo:
https://github.com/proyecto26/ion-phaser/tree/master/react

I'm using create-react-app and React 16.8.6

image

@jdnichollsc
Copy link
Member

Hi @stahlmanDesign, thanks for reporting this issue!
Can you try installing yarn add @ion-phaser/react only?
Let me know please 👍

@jdnichollsc jdnichollsc added help wanted Extra attention is needed question Further information is requested labels Jul 26, 2019
@stahlmanDesign
Copy link
Author

I'm not using yarn, but when use npm install @ion-phaser/react without @ion-phaser/core the result is the same error.

I tried to create a codepen but @ion-phaser/react is not hosted at the same CDN as the core: https://unpkg.com/@ionic/core@4.4.2/dist/ionic.js

https://codepen.io/stahlmandesign/pen/bXBGxE?editors=1111

@jdnichollsc
Copy link
Member

@stahlmanDesign
Copy link
Author

That doesn't seem to be the expected code. The entire contents of https://unpkg.com/@ion-phaser/react@1.1.0/dist/index.js are just:

export * from './components';
//# sourceMappingURL=index.js.map

@jdnichollsc
Copy link
Member

jdnichollsc commented Jul 26, 2019

Can you debug from the demo-react folder please? https://github.com/proyecto26/ion-phaser/blob/master/demo-react/package.json#L6

@jdnichollsc
Copy link
Member

@stahlmanDesign check the dist folder and let me know please 👍 https://unpkg.com/browse/@ion-phaser/react@1.1.0/dist/

@jdnichollsc
Copy link
Member

I've reported this error, I was able to reproduce this issue from Vue.js ionic-team/stencil#1842

@jdnichollsc
Copy link
Member

Try the last version 1.2.0 and let me know 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants