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
We have decided to use ES Modules by default for all Wechaty projects, are working hard to refactoring all NPM modules from the Wechaty ecosystem from CommJS to ESM. See:
We have decided to use ES Modules by default for all Wechaty projects, are working hard to refactoring all NPM modules from the Wechaty ecosystem from CommJS to ESM. See:
For now, the Wechaty Getting Started has been already switched to ES Module mode, which means:
import { Module } from 'module'
require
will not be supported anymore. (will through a Node.js error if use it with ESM)For our tech writers, we need to:
import { Module } from 'module'
in our new docsrequire('module')
in old docs withimport
syntax whenever we see itWe will also replace all the contents from our blogs as well, which will be a huge project and we will do it later.
The text was updated successfully, but these errors were encountered: