Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please update @latest on npm repo to the real latest version #63

Open
jerryshang opened this issue Aug 12, 2022 · 0 comments
Open

please update @latest on npm repo to the real latest version #63

jerryshang opened this issue Aug 12, 2022 · 0 comments

Comments

@jerryshang
Copy link

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"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant