Skip to content
Advertisement

Tag: babel-loader

Module not found: Error: You attempted to import babel-preset which falls outside of the project src/ directory

I’m developing an application created using create-react-app But then I needed to use mediainfojs library, this library requires wasm files, and based on what I understood I couldn’t add it using create-react-app, I had to eject it. After ejecting it, I went to mediainfo information on how to add the wasm on the webpack They use the CopyPlugin, but then

Uncaught ReferenceError: regeneratorRuntime is not defined in react 17, webpack 5 while making api calls through actions

Having this error Uncaught ReferenceError: regeneratorRuntime is not defined when trying to make a api call using superagent. Currently i am using react 17, webpack 5 along with css modules and all latest packages. package.json babel.config.js webpack.config.js Answer For Babel 7, install these two dependencies: And, in .babelrc, add:

Advertisement