I tried to create react app with node version 12.1.0 but it warned me that my minimum node version should be at least 14.0. I used nvm
to change my node version to 14.0 and created react app.
However, I want to use my app on node version 12.1.0. So I changed to node version v12.1.0 but I got:
"ERROR in Module.createRequire is not a function" error. Also " ERROR in Error: Child compilation failed: Module.createRequire is not a function "
As we can read in official docs:
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in React.
It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. You’ll need to have Node >= 14.0.0 and npm >= 5.6 on your machine.
So these are requirements
that you must meet
and it seems that it cannot be avoided that way
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With