When I build my project, I have the following error :
ERROR in ./node_modules/@marsidev/react-turnstile/dist/index.js 2:170-211
**Module not found: Error: Can't resolve 'react/jsx-runtime'** in '/Users/thierrylau/workspace/front/node_modules/@marsidev/react-turnstile/dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
My project use react 16 so I update react version to 17 for the error persist.
Bug Report Checklist
main
branch of the repository.Expected
I expect my project to build without error
Actual
When I build my project, I have the following error :
My project use react 16 so I update react version to 17 for the error persist.
Here are some of my package.json dependencies :
Here is the content of my babel.sonfig.js
Best regards
Package Version
1.1.0
Browsers
Chrome
Additional Info
node version is v20.12.0