We're working on an application where we have Agora integrated already. However we're trying to migrate the the react sdk.
I installed the package via npm i agora-rtc-react and I get the following error while running npm run start:
Failed to compile.
Module not found: Error: Can't resolve 'react/jsx-runtime' in '.../node_modules/agora-rtc-react/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.
ERROR in ./node_modules/agora-rtc-react/dist/agora-rtc-react.mjs 2:0-56
Module not found: Error: Can't resolve 'react/jsx-runtime' in '.../node_modules/agora-rtc-react/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.
What kind of problem do you need help?
We're working on an application where we have Agora integrated already. However we're trying to migrate the the react sdk.
I installed the package via
npm i agora-rtc-react
and I get the following error while runningnpm run start
:Here's my
package.json
: