Closed stahlmanDesign closed 5 years ago
Hi @stahlmanDesign, thanks for reporting this issue!
Can you try installing yarn add @ion-phaser/react
only?
Let me know please 👍
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
try with this https://unpkg.com/@ion-phaser/react@1.1.0/dist/index.js
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
Can you debug from the demo-react
folder please? https://github.com/proyecto26/ion-phaser/blob/master/demo-react/package.json#L6
@stahlmanDesign check the dist
folder and let me know please 👍 https://unpkg.com/browse/@ion-phaser/react@1.1.0/dist/
I've reported this error, I was able to reproduce this issue from Vue.js https://github.com/ionic-team/stencil/issues/1842
Try the last version 1.2.0 and let me know 👍
I'm trying to use Phaser with React.
I installed with
npm install @ion-phaser/core --save
andnpm install @ion-phaser/react --save
and then tried to run the code in this demo: https://github.com/proyecto26/ion-phaser/tree/master/reactI'm using create-react-app and React 16.8.6