You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running my project with webpack-dev-server I get the following runtime error:
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
at Module.<anonymous> (/Users/matt/temp/test/node_modules/querystring-es3/encode.js:40:1)
at Module../node_modules/querystring-es3/encode.js?babel-target=modern (http://localhost:8080/main.modern.js:3590:30)
at __webpack_require__ (http://localhost:8080/main.modern.js:20:30)
at Object../node_modules/querystring-es3/index.js (/Users/matt/temp/test/node_modules/querystring-es3/index.js:4:38)
at __webpack_require__ (http://localhost:8080/main.modern.js:20:30)
at Object../node_modules/url/url.js (/Users/matt/temp/test/node_modules/url/url.js:100:19)
at __webpack_require__ (http://localhost:8080/main.modern.js:20:30)
at Object../node_modules/webpack-dev-server/client/utils/createSocketUrl.js (http://localhost:8080/main.modern.js:10747:11)
at __webpack_require__ (http://localhost:8080/main.modern.js:20:30)
at Object.<anonymous> (http://localhost:8080/main.modern.js:10380:23)
I was surprised that I wasn't able to find anybody mentioning this same exact issue here or elsewhere online (maybe my google-foo is just bad). There must be many people using this plugin with webpack-dev-server which makes me think there is maybe something odd with my config.
If my config is okay then maybe I am just the first to report the issue. In which case maybe the auto filtering needs to be improved to catch querystring-es3.
You need to open the server output in its own browser tab/window in order to see the error in the console for some reason. A bug with the embedded browser window I guess.
The text was updated successfully, but these errors were encountered:
despian
added a commit
to despian/webpack-babel-multi-target-plugin
that referenced
this issue
Feb 14, 2020
When running my project with
webpack-dev-server
I get the following runtime error:This can be resolved by adding:
or
I'm using:
I was surprised that I wasn't able to find anybody mentioning this same exact issue here or elsewhere online (maybe my google-foo is just bad). There must be many people using this plugin with
webpack-dev-server
which makes me think there is maybe something odd with my config.If my config is okay then maybe I am just the first to report the issue. In which case maybe the auto filtering needs to be improved to catch
querystring-es3
.My full config:
package.json
webpack.config.js
Update:
So I don't think it's anything funky with my config. I was able to reproduce the issue in this minimal setup:
https://codesandbox.io/s/webpack-babel-multi-target-pluginwebpack-dev-servertest-vq79w
You need to open the server output in its own browser tab/window in order to see the error in the console for some reason. A bug with the embedded browser window I guess.
The text was updated successfully, but these errors were encountered: