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

Support React v17 #45

Open
i3z0x1 opened this issue Mar 1, 2022 · 3 comments
Open

Support React v17 #45

i3z0x1 opened this issue Mar 1, 2022 · 3 comments

Comments

@i3z0x1
Copy link

i3z0x1 commented Mar 1, 2022

We have to upgrade this package support React latest version v17.0.2.

As I have an error installing this dependencies using NPM. Fix the upstream dependency conflict

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! While resolving: myapp@2.0.4
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.7.0" from @ion-phaser/react@1.3.0
npm ERR! node_modules/@ion-phaser/react
npm ERR!   @ion-phaser/react@"*" from the root project
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.```
@i3z0x1
Copy link
Author

i3z0x1 commented Mar 1, 2022

Another Error while try get component <IonPhaser ref={gameRef} game={game} initialize={initialize} />

ExceptionsManager.js:149 Invariant Violation: View config getter callback for component `ion-phaser` must be a function (received `undefined`). Make sure to start component names with a capital letter.

@jdnichollsc
Copy link
Member

Hello mate, thanks for reporting this issue!

Very odd, let me check! in the meantime, you can try using a hook approach instead: https://stackblitz.com/edit/react-phaser

Best Regards,
Juan

@i3z0x1 i3z0x1 changed the title Support React v17.0.2 Support React v17 Mar 10, 2022
@rsodre
Copy link

rsodre commented Aug 9, 2022

Same happens to me, using react@18.2.0

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

No branches or pull requests

3 participants