I have a freshly cloned repo created from the create-react-app template. I npm install to install the packages and then npm start to serve the files on localhost:3000. My coworker (the repo creator) is not having any issues.
However, I see the page flash for a second and then I get the following error:
Failed to compile createRequire is not a function Referenced from: BaseConfig
The error message doesn't provide any other information to help trace which file it could be coming from.
I've tried the following to troubleshoot:
- Deleting
node_modulesandpackage-lock.jsonand re-installing - Deleting the entire repo and re-cloning
- Searching for 'createRequire' or 'BaseConfig' in project files found no results
- Searching online for similar issues. None seem to have the same error I'm encountering.
Other details: npm version 6.14.8 react version 17.0.1
Any idea where this error could be coming from or what steps I can do to trace it?