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
Using Webpack minimization causes an error when running an "await query"
Error: Received packet in the wrong sequence
(This is mentioned under the npm mysql module issues: mysqljs/mysql#1655)
It has a workaround (disable mangling of function names):
optimization: {minimizer: [newTerserPlugin({terserOptions: {mangle: false}})]// false otherwise mysql promises blow up with "PROTOCOL_INCORRECT_PACKET_SEQUENCE"}
Using Webpack minimization causes an error when running an "await query"
Error: Received packet in the wrong sequence
(This is mentioned under the npm mysql module issues: mysqljs/mysql#1655)
It has a workaround (disable mangling of function names):
However it seems like
mysql2
might support promises/async/await and mangled names?https://www.npmjs.com/package/mysql2
Might be good to add a configuration option to use mysql2 instead, since it looks to be backwards compatible.
The text was updated successfully, but these errors were encountered: