wechaty / getting-started

A Starter Project Template for Wechaty works out-of-the-box
https://gitpod.io/#https://github.com/wechaty/wechaty-getting-started
Apache License 2.0
808 stars 352 forks source link

"wechaty": "^1.20.2", 这个版本下 不支持js环境吗,我没有用ts #282

Open nsnsqk opened 1 year ago

nsnsqk commented 1 year ago

在main.js里,这一句就报错了: import { config, Wechaty, log, ScanStatus, WechatyBuilder, Message } from 'wechaty'

sunboye commented 1 year ago

我也是,有人教教吗 import {FileBox, ScanStatus, WechatyBuilder, log } from 'wechaty' ^^^^^^^ SyntaxError: The requested module 'wechaty' does not provide an export named 'FileBox' at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:189:5) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:533:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)

版本信息: $ npm --version 9.6.0

$ node --version v16.17.0