Webpack 4:目标:NodeJS.方式:生产;MySQL错误:以错误的顺序接收数据包 [英] Webpack 4: Target: NodeJS. Mode: production; MySQL Error: Received packet in the wrong sequence

查看:37
本文介绍了Webpack 4:目标:NodeJS.方式:生产;MySQL错误:以错误的顺序接收数据包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚升级到 Webpack 4 并且在使用 mode:'production' 构建我的服务器端代码时.我得到这个 MySQL 错误:接收的数据包顺序错误.

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?

推荐答案

我在与 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"

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"

这篇关于Webpack 4:目标:NodeJS.方式:生产;MySQL错误:以错误的顺序接收数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆