“require is not defined” Using webpack 2

前端 未结 3 1642
暗喜
暗喜 2020-12-16 22:23

I\'m having problems with bundle my app using webpack, I\'ve reading in the site similar problems though I\'ve trying all the recommendations and I can\'t figure it out what

3条回答
  •  旧巷少年郎
    2020-12-16 23:08

    Some of the configuration need to be changed:

    target: 'web', // which is by default // externals: [nodeExternals()], remove this as it is causing problem

提交回复
热议问题