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
Not meant for production use
You should not be using babel-node in production. It is unnecessarily heavy, with high memory usage due to the cache being stored in memory. You will also always experience a startup performance penalty as the entire app needs to be compiled on the fly.
Check out the example Node.js server with Babel for an idea of how to use Babel in a production deployment.
When we run mybot.js by Docker, we might get this error message:
This is because Wechaty use node instead of babel to run js code, which does not support
import
.Solution:
use Babel Node to run javascript code inside docker to support ES6/7.
Thanks @ jaf(weixin://wxwswjws) report this.
The text was updated successfully, but these errors were encountered: