Adding another answer to the mix the project I was looking at when I hit this was built off create-react-app using react scripts v4 and React I tried directly referencing the files in the import statements but relative paths that point outside the react app's src directory is not allowed. The server.js file will act as the primary server for the app. Build Your Application Using Create-react-App, 2. 16 | state = { scrollY: new Animated.Value(0) }; By updating Webpack with the right configuration settings, you can solve the following: In your project folder, youll find your Webpack configuration file in node_modules/react-scripts/config/webpack.config.js. Creating a babel.config.js with this script solve my issue. Mmm i think the problem is in your babel, try this: I remade my project from scratch and realized that I was wrong to not include the "D" at the end of the command: Adding another answer to the mix the project I was looking at when I hit this was built off create-react-app using react scripts v4 and React 17. The text was updated successfully, but these errors were encountered: replacing addBabelPlugins with addExternalBabelPlugins give me a new error: This issue has been automatically marked as stale because it has not had recent activity. The solution that worked for me was when I discovered node_modules/react-scripts/config/webpack.config.js contained: // @remove-o How can I set the default value for an HTML