liady / webpack-node-externals

Easily exclude node modules in Webpack
MIT License
1.3k stars 62 forks source link

webpack serve error: interopRequireWildcard":1 Uncaught ReferenceError: require is not defined #94

Open lornally opened 3 years ago

lornally commented 3 years ago
# when i use this config:
externals:[nodeExternals()]

# i got this error, when i browser localhost:8080, with webpack serve and chrome
interopRequireWildcard":1 Uncaught ReferenceError: require is not defined
    at Object.@babel/runtime/helpers/interopRequireWildcard (interopRequireWildcard":1)
    at __webpack_require__ (bootstrap:18)
    at Object../src/rei.cs (rei.js?8db1d7f0395cecc37478:12)
    at __webpack_require__ (bootstrap:18)
    at checkDeferredModulesImpl (jsonp chunk loading:71)
    at webpackJsonpCallback (jsonp chunk loading:53)
    at rei.js?8db1d7f0395cecc37478:1
serdaryesilmurat commented 3 years ago

Same problem :(

IlyaShkurenko commented 2 years ago

I'm also facing this issue