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

Failing to resolve module 'react/jsx-runtime' #13

Closed
epresaskds opened this issue May 19, 2022 · 3 comments
Closed

Failing to resolve module 'react/jsx-runtime' #13

epresaskds opened this issue May 19, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@epresaskds
Copy link

epresaskds commented May 19, 2022

Hello, I'm migrating from @react-google-login because the deprecation of old Google API, but I'm getting this error while building my app in local:

Failed to compile.

../node_modules/@react-oauth/google/dist/index.esm.js
Module not found: Can't resolve 'react/jsx-runtime' in 'path/to/my/project/node_modules/@react-oauth/google/dist'

I'm using the following versions:

"react": "16.10.2",
"react-dom": "16.10.2",
"typescript": "3.9.5",
"@react-oauth/google": "^0.2.1",
... rest of dependencies ommited for brevity

Thanks in advance!

Update: After realising that jsx-runtime is from react 17 (duh me), is there any way to make this library compatible with react 16?

@MomenSherif MomenSherif self-assigned this May 19, 2022
@MomenSherif MomenSherif added the bug Something isn't working label May 19, 2022
@MomenSherif
Copy link
Owner

Hello @epresaskds, I'm sorry but the build output was targeting the new JSX transformation, as you figured out.

I will give it a try today and will notify you

@MomenSherif
Copy link
Owner

MomenSherif commented May 19, 2022

@epresaskds v0.2.2 Released 🎉

upgrade and tell me if everything is good

@epresaskds
Copy link
Author

Perfect! it works like a charm, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants