Open UmaMuthu opened 4 years ago
@UmaMuthu were you ever able to fix this? If so, can you please share your solution? Thanks!
I found a work around.
import { DefinePlugin } from "webpack";
config.plugins = [
// Stop build hanging https://github.com/node-formidable/formidable/issues/337#issuecomment-153408479
new DefinePlugin({ "global.GENTLY": false }),
]
react-app-rewired build has these warning while building the code ./node_modules/log-utils/node_modules/ansi-colors/index.js Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/create-frame/utils.js Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/handlebars-helpers/lib/utils/utils.js Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
in the browser getting this error cannot find module falsey, create-frame,is-number
react-scripts@3.2.0
config-overides.js const { override, addDecoratorsLegacy } = require("customize-cra"); const enableRequireEnsure = () => config => { config.output.globalObject = 'this' config.module.rules[0].parser.requireEnsure = true return config } module.exports = override( addDecoratorsLegacy(), enableRequireEnsure(), );