import {WechatyBuilder, Message} from 'wechaty'
if (message.type() == message.Image){
}
import {WechatyBuilder, Message} from 'wechaty'
^^^^^^^
SyntaxError: The requested module 'wechaty' does not provide an export named 'Message'
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:409:24)
at async loadESM (node:internal/process/esm_loader:85:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
import {WechatyBuilder, Message} from 'wechaty' if (message.type() == message.Image){
}
import {WechatyBuilder, Message} from 'wechaty' ^^^^^^^ SyntaxError: The requested module 'wechaty' does not provide an export named 'Message' 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:409:24) at async loadESM (node:internal/process/esm_loader:85:5) at async handleMainPromise (node:internal/modules/run_main:61:12)
npm --version:8.12.1 node --version: 18.4.0