Open
Description
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.
The deps are:
"dependencies": {
"dotenv": "^16.0.1",
"qrcode-terminal": "^0.12.0",
"wechaty": "^1.20.2",
"wechaty-plugin-contrib": "^1.0.18",
"wechaty-puppet-wechat": "^1.18.4"
},
Metadata
Metadata
Assignees
Labels
No labels