Webpack 4: Target: NodeJS. Mode: production; MySQL Error: Received packet in the wrong sequence

戏子无情 提交于 2019-12-24 00:54:01

问题


Just upgraded to Webpack 4 and when building my server side code with mode:'production'.I get this MySQL Error: Received packet in the wrong sequence.

How can you prevent such mangling from happening?


回答1:


I have faced the same problem when bundling with web pack. at last i have solved the issue. i think it is an issue related to web-pack and babel-loader version mismatch. i suggest following combinations in package.json "babel-core": "^6.26.0", "babel-loader": "^7.1.2", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-3": "^6.24.1", "mysql": "^2.15.0", "serverless-webpack": "^2.2.3", "webpack": "^3.5.5"



来源:https://stackoverflow.com/questions/49359623/webpack-4-target-nodejs-mode-production-mysql-error-received-packet-in-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!