2

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?

4

1 回答 1

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"

于 2018-07-03T12:38:23.127 回答