Open FrozenPyrozen opened 2 years ago
@FrozenPyrozen is your project using ES6 or CommonJS? It looks like you're using lodash-es
, which I believe does not support CommonJS's require
.
Not sure if this will help but I just tried installing craco in my project but it errors on the install because the current version (at time of writing) of craco requires v4 of react-scripts, whereas I have v5.
i have a same issue ! please update react-script to v5
@terrancecorley @pooooriya craco 6 does not support CRA 5 but craco 7 does. Currently, craco 7 is in alpha, so you can install it with npm i @craco/craco@alpha
.
@dilanx both ES6 and CommonJS
I've got error on running script
craco start
withyarn
after updating "react-scripts" to "^5.0.1" Reproduced with craco^6.4.3"
and on^7.0.0-alpha.7
, node version :v16.13.1
, yarn version1.22.17
package.json
craco.config.js