In the getting-started project, we have "wechaty-plugin-contrib": "^1.11.1". But if I initialize project with yarn add wechaty-plugin-contrib@latest, I got 1.0.18. It causes an import problem:
yarn run start
yarn run v1.22.19
$ cross-env WECHATY_LOG=verbose WECHATY_PUPPET=wechaty-puppet-wechat NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node index.ts
file:///***/node_modules/wechaty-plugin-contrib/dist/esm/src/types/talker-message.js:1
import { type, log, } from 'wechaty';
^^^^
SyntaxError: The requested module 'wechaty' does not provide an export named 'type'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
error Command failed with exit code 1.
In the getting-started project, we have
"wechaty-plugin-contrib": "^1.11.1"
. But if I initialize project withyarn add wechaty-plugin-contrib@latest
, I got1.0.18
. It causes an import problem:The deps are: