fingerprintjs / fingerprintjs-pro-react

Fingerprint Pro Wrapper for React Single Page Applications (SPA)
MIT License
52 stars 8 forks source link

React Can't resolve 'react/jsx-runtime' #90

Closed MadikMayCry closed 6 months ago

MadikMayCry commented 1 year ago

Module not found: Error: Can't resolve 'react/jsx-runtime'

react: 17.02 typescript

alias: { 'react/jsx-runtime': 'react/jsx-runtime' }

ilfa commented 1 year ago

Hi @MadikMayCry!

I tried to use the library with 17th react and everything works well.

I installed it with create-react-app an used this instruction to revert react version from 18 to 17.

Can you provide more information about your problem?

MadikMayCry commented 1 year ago

we are using custom ssr & webpack

image image image

I tried adding alias in webpack resolvers, and google more about jsx/runtime error. But couldn't find solution

ilfa commented 1 year ago

Did you try to use this alias?

alias: {
'react/jsx-runtime': 'react'
}

But anyway, react 17 has jsx-runtime.js in npm module.

Can you reproduce the problem in a sandbox?

JuroUhlar commented 6 months ago

I am going to close this as the necessary debugging information hasn't been provided in over a year and the library now officially requires React 18 or higher.

Let me know if the problem is still relevant and I can reopen the issue, cheers.