Webpack 4: Target: NodeJS. Mode: production; MySQL Error: Received packet in the wrong sequence
Webpack 4: Target: NodeJS. Mode: production; MySQL Error: Received packet in the wrong sequence
刚刚升级到 Webpack 4 并且在使用 mode:'production'
构建我的服务器端代码时。我明白了 MySQL Error: Received packet in the wrong sequence.
如何才能防止这种混乱的发生?
我在用 web pack 打包的时候遇到了同样的问题。最后我解决了这个问题。
我认为这是与 web-pack 和 babel-loader 版本不匹配有关的问题。
我建议 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"
刚刚升级到 Webpack 4 并且在使用 mode:'production'
构建我的服务器端代码时。我明白了 MySQL Error: Received packet in the wrong sequence.
如何才能防止这种混乱的发生?
我在用 web pack 打包的时候遇到了同样的问题。最后我解决了这个问题。 我认为这是与 web-pack 和 babel-loader 版本不匹配有关的问题。 我建议 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"