helpers / handlebars-helpers

188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.
http://assemble.io/helpers/
MIT License
2.22k stars 364 forks source link

Build issue #357

Open UmaMuthu opened 4 years ago

UmaMuthu commented 4 years ago

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(), );

Joshmamroud commented 3 years ago

@UmaMuthu were you ever able to fix this? If so, can you please share your solution? Thanks!

gruckion commented 2 years ago

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 }),
]