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

3.0-beta版运行时报错,安装依赖显示成功的,使用的是V格表,求解决 #62

Open
duzidada opened this issue Mar 6, 2024 · 1 comment

Comments

@duzidada
Copy link

duzidada commented Mar 6, 2024

PS C:\Users\Administrator\Documents\chatflow-admin-dev> npm i

up to date, audited 857 packages in 5s

134 packages are looking for funding
run npm fund for details

5 vulnerabilities (1 moderate, 4 high)

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
PS C:\Users\Administrator\Documents\chatflow-admin-dev> npm run start

chatflow-admin@3.0.0-Beta-7 start
nest start

example/ding-dong-bot.ts:6:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

6 } from 'wechaty'
~~~~~~~~~
example/group-master-worker.ts:6:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarati
ons.

6 } from 'wechaty'
~~~~~~~~~
src/api/admin.ts:1:45 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { Message, log, Wechaty, Room } from 'wechaty'
~~~~~~~~~
src/api/admin.ts:2:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

2 import { FileBox } from 'file-box'
~~~~~~~~~~
src/api/admin.ts:28:3 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logger'.

28 logger,
~~~~~~
src/api/base-config.ts:6:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

6 } from 'wechaty'
~~~~~~~~~
src/api/contact-room-finder.ts:1:45 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarat
ions.

1 import { Wechaty, Room, Contact, log } from 'wechaty'
~~~~~~~~~
src/api/message.ts:7:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

7 } from 'wechaty'
~~~~~~~~~
src/api/message.ts:8:20 - error TS2307: Cannot find module 'moment' or its corresponding type declarations.

8 import moment from 'moment'
~~~~~~~~
src/api/message.ts:10:50 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

10 import { formatTimestamp, getCurrentTime, delay, logger, getCurTime } from '../utils/utils.js'
~~~~~~
src/app/activity.ts:1:36 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { Message, log, Room } from 'wechaty'
~~~~~~~~~
src/app/bilingual-translation-assistant-for-room-chat.ts:17:25 - error TS2307: Cannot find module 'wechaty' or its
corresponding type declarations.

17 } from 'wechaty'
~~~~~~~~~
src/app/bilingual-translation-assistant-for-room-chat.ts:20:19 - error TS2307: Cannot find module 'api2d' or its co
rresponding type declarations.

20 import Api2d from 'api2d'
~~~~~~~
src/app/bilingual-translation-assistant-for-room-chat.ts:155:10 - error TS7006: Parameter 'e' implicitly has an 'an
y' type.

155 .catch(e => log.error('StarterBot', e))
~
src/app/chatbot.ts:2:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

2 import { FileBox } from 'file-box'
~~~~~~~~~~
src/app/chatbot.ts:8:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

8 } from 'wechaty'
~~~~~~~~~
src/app/chatbot.ts:9:10 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMessage'.

9 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~~~~~~~~~~~~
src/app/chatbot.ts:9:29 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

9 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~
src/app/contact-room-export.ts:1:18 - error TS2307: Cannot find module 'xlsx' or its corresponding type declaration
s.

1 import XLSX from 'xlsx'
~~~~~~
src/app/contact-room-export.ts:2:17 - error TS2307: Cannot find module 'fast-csv' or its corresponding type declara
tions.

2 import csv from 'fast-csv'
~~~~~~~~~~
src/app/contact-room-export.ts:7:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarati
ons.

7 } from 'wechaty'
~~~~~~~~~
src/app/contact-room-export.ts:9:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declara
tions.

9 import { FileBox } from 'file-box'
~~~~~~~~~~
src/app/contact-room-export.ts:58:21 - error TS7006: Parameter 'contact' implicitly has an 'any' type.

58 contacts.forEach((contact) => {
~~~~~~~
src/app/extract-at.ts:1:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { Message, log } from 'wechaty'
~~~~~~~~~
src/app/group-notice.ts:4:48 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

4 import { Contact, Message, log, Wechaty } from 'wechaty'
~~~~~~~~~
src/app/group-notice.ts:5:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

5 import { FileBox } from 'file-box'
~~~~~~~~~~
src/app/group-notice.ts:6:18 - error TS2307: Cannot find module 'xlsx' or its corresponding type declarations.

6 import XLSX from 'xlsx'
~~~~~~
src/app/meet-mate.ts:10:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

10 } from 'wechaty'
~~~~~~~~~
src/app/meet-mate.ts:11:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

11 import { FileBox } from 'file-box'
~~~~~~~~~~
src/app/meet-mate.ts:249:10 - error TS7006: Parameter 'e' implicitly has an 'any' type.

249 .catch(e => log.error('MeetingBot', e))
~
src/app/qa.ts:3:36 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

3 import { Message, log, Room } from 'wechaty'
~~~~~~~~~
src/app/riding.ts:1:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { Message, log } from 'wechaty'
~~~~~~~~~
src/chatflow.ts:4:45 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

4 import { WechatyPlugin, Wechaty, log } from 'wechaty'
~~~~~~~~~
src/chatflow.ts:13:8 - error TS2613: Module '"C:/Users/Administrator/Documents/chatflow-admin-dev/src/utils/utils"'
has no default export. Did you mean to use 'import { delay } from "C:/Users/Administrator/Documents/chatflow-admin
-dev/src/utils/utils"' instead?

13 import delay, { logForm } from './utils/utils.js'
~~~~~
src/chatflow.ts:13:17 - error TS2305: Module '"./utils/utils.js"' has no exported member 'logForm'.

13 import delay, { logForm } from './utils/utils.js'
~~~~~~~
src/db/nedb-orm.ts:3:23 - error TS2307: Cannot find module 'nedb' or its corresponding type declarations.

3 import Datastore from 'nedb'
~~~~~~
src/db/nedb-orm.ts:5:21 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

5 import { log } from 'wechaty'
~~~~~~~~~
src/db/nedb.ts:1:23 - error TS2307: Cannot find module 'nedb' or its corresponding type declarations.

1 import Datastore from 'nedb'
~~~~~~
src/handlers/on-error.ts:1:21 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { log } from 'wechaty'
~~~~~~~~~
src/handlers/on-login.ts:1:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import type { Wechaty } from 'wechaty'
~~~~~~~~~
src/handlers/on-logout.ts:1:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

1 import { Contact, log } from 'wechaty'
~~~~~~~~~
src/handlers/on-message.ts:1:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations
.

1 import { Message, log } from 'wechaty'
~~~~~~~~~
src/handlers/on-message.ts:13:3 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logForm'.

13 logForm,
~~~~~~~
src/handlers/on-ready.ts:3:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

3 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/handlers/on-roomjoin.ts:1:36 - error TS2307: Cannot find module 'wechaty' or its corresponding type declaration
s.

1 import { Contact, Room, log } from 'wechaty'
~~~~~~~~~
src/handlers/on-scan.ts:4:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

4 } from 'wechaty'
~~~~~~~~~
src/handlers/on-scan.ts:9:3 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logForm'.

9 logForm,
~~~~~~~
src/handlers/onReadyOrLogin.ts:3:63 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarat
ions.

3 import { Contact, Wechaty, log, Message, Room, Sayable } from 'wechaty'
~~~~~~~~~
src/handlers/onReadyOrLogin.ts:4:17 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

4 import { delay, logger } from '../utils/utils.js'
~~~~~~
src/handlers/onReadyOrLogin.ts:18:10 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logForm'.

18 import { logForm } from '../utils/mod.js'
~~~~~~~
src/plugins/connectors/chatgpt.ts:4:25 - error TS2307: Cannot find module 'file-box' or its corresponding type decl
arations.

4 import { FileBox } from 'file-box'
~~~~~~~~~~
src/plugins/connectors/chatgpt.ts:16:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type decla
rations.

16 } from 'wechaty'
~~~~~~~~~
src/plugins/connectors/chatgpt.ts:23:3 - error TS2305: Module '"../../utils/utils.js"' has no exported member 'form
atSentMessage'.

23 formatSentMessage,
~~~~~~~~~~~~~~~~~
src/plugins/connectors/chatgpt.ts:26:28 - error TS2307: Cannot find module 'chatgpt' or its corresponding type decl
arations.

26 import { ChatGPTAPI } from 'chatgpt'
~~~~~~~~~
src/plugins/connectors/wx-openai.ts:3:25 - error TS2307: Cannot find module 'file-box' or its corresponding type de
clarations.

3 import { FileBox } from 'file-box'
~~~~~~~~~~
src/plugins/connectors/wx-openai.ts:15:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type dec
larations.

15 } from 'wechaty'
~~~~~~~~~
src/plugins/connectors/wx-openai.ts:22:3 - error TS2305: Module '"../../utils/utils.js"' has no exported member 'fo
rmatSentMessage'.

22 formatSentMessage,
~~~~~~~~~~~~~~~~~
src/plugins/connectors/wx-openai.ts:25:28 - error TS2307: Cannot find module 'chatgpt' or its corresponding type de
clarations.

25 import { ChatGPTAPI } from 'chatgpt'
~~~~~~~~~
src/plugins/group-master/group-master.ts:4:10 - error TS2305: Module '"../../utils/utils.js"' has no exported membe
r 'logForm'.

4 import { logForm } from '../../utils/utils.js'
~~~~~~~
src/plugins/group-master/group-master.ts:12:8 - error TS2307: Cannot find module 'wechaty' or its corresponding typ
e declarations.

12 } from 'wechaty'
~~~~~~~~~
src/plugins/group-master/group-master.ts:14:25 - error TS2307: Cannot find module 'file-box' or its corresponding t
ype declarations.

14 import { FileBox } from 'file-box'
~~~~~~~~~~
src/plugins/group-master/group-master.ts:316:9 - error TS2322: Type 'string' is not assignable to type 'Buffer'.

316 payload: 'device disconnect',
~~~~~~~
src/plugins/group-master/group-master.ts:537:28 - error TS7006: Parameter 'user' implicitly has an 'any' type.

537 bot.on('login', async (user) => {
~~~~
src/plugins/group-master/group-master.ts:558:29 - error TS7006: Parameter 'user' implicitly has an 'any' type.

558 bot.on('logout', async (user, reason) => {
~~~~
src/plugins/group-master/group-master.ts:558:35 - error TS7006: Parameter 'reason' implicitly has an 'any' type.

558 bot.on('logout', async (user, reason) => {
~~~~~~
src/plugins/group-master/group-master.ts:566:33 - error TS7006: Parameter 'friendship' implicitly has an 'any' type
.

566 bot.on('friendship', async (friendship) => {
~~~~~~~~~~
src/plugins/group-master/group-master.ts:609:32 - error TS7006: Parameter 'room' implicitly has an 'any' type.

609 bot.on('room-join', async (room, inviteeList, inviter) => {
~~~~
src/plugins/group-master/group-master.ts:609:38 - error TS7006: Parameter 'inviteeList' implicitly has an 'any' typ
e.

609 bot.on('room-join', async (room, inviteeList, inviter) => {
~~~~~~~~~~~
src/plugins/group-master/group-master.ts:609:51 - error TS7006: Parameter 'inviter' implicitly has an 'any' type.

609 bot.on('room-join', async (room, inviteeList, inviter) => {
~~~~~~~
src/plugins/group-master/group-master.ts:610:40 - error TS7006: Parameter 'c' implicitly has an 'any' type.

610 const nameList = inviteeList.map(c => c.name()).join(',')
~
src/plugins/group-master/group-master.ts:617:33 - error TS7006: Parameter 'room' implicitly has an 'any' type.

617 bot.on('room-leave', async (room, leaverList, remover) => {
~~~~
src/plugins/group-master/group-master.ts:617:39 - error TS7006: Parameter 'leaverList' implicitly has an 'any' type
.

617 bot.on('room-leave', async (room, leaverList, remover) => {
~~~~~~~~~~
src/plugins/group-master/group-master.ts:617:51 - error TS7006: Parameter 'remover' implicitly has an 'any' type.

617 bot.on('room-leave', async (room, leaverList, remover) => {
~~~~~~~
src/plugins/group-master/group-master.ts:618:39 - error TS7006: Parameter 'c' implicitly has an 'any' type.

618 const nameList = leaverList.map(c => c.name()).join(',')
~
src/plugins/group-master/group-master.ts:626:33 - error TS7006: Parameter 'room' implicitly has an 'any' type.

626 bot.on('room-topic', async (room, topic, oldTopic, changer) => {
~~~~
src/plugins/group-master/group-master.ts:626:39 - error TS7006: Parameter 'topic' implicitly has an 'any' type.

626 bot.on('room-topic', async (room, topic, oldTopic, changer) => {
~~~~~
src/plugins/group-master/group-master.ts:626:46 - error TS7006: Parameter 'oldTopic' implicitly has an 'any' type.

626 bot.on('room-topic', async (room, topic, oldTopic, changer) => {
~~~~~~~~
src/plugins/group-master/group-master.ts:626:56 - error TS7006: Parameter 'changer' implicitly has an 'any' type.

626 bot.on('room-topic', async (room, topic, oldTopic, changer) => {
~~~~~~~
src/plugins/group-master/group-master.ts:631:33 - error TS7006: Parameter 'roomInvitation' implicitly has an 'any'
type.

631 bot.on('room-invite', async roomInvitation => {
~~~~~~~~~~~~~~
src/plugins/group-master/group-master.ts:643:28 - error TS7006: Parameter 'error' implicitly has an 'any' type.

643 bot.on('error', async (error) => {
~~~~~
src/plugins/group-master/on-message.ts:6:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type d
eclarations.

6 } from 'wechaty'
~~~~~~~~~
src/plugins/group-master/on-message.ts:7:25 - error TS2307: Cannot find module 'file-box' or its corresponding type
declarations.

7 import { FileBox } from 'file-box'
~~~~~~~~~~
src/plugins/group-master/store.ts:3:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declar
ations.

3 } from 'wechaty'
~~~~~~~~~
src/plugins/langchain.ts:1:28 - error TS2307: Cannot find module 'langchain/chat_models/openai' or its correspondin
g type declarations.

1 import { ChatOpenAI } from 'langchain/chat_models/openai'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plugins/langchain.ts:2:45 - error TS2307: Cannot find module 'langchain/schema' or its corresponding type decla
rations.

2 import { HumanMessage, SystemMessage } from 'langchain/schema'
~~~~~~~~~~~~~~~~~~
src/plugins/mappers/message-mapper.ts:4:24 - error TS2307: Cannot find module 'wechaty' or its corresponding type d
eclarations.

4 } from 'wechaty'
~~~~~~~~~
src/plugins/matchers/contact-matcher.ts:4:20 - error TS2307: Cannot find module 'wechaty' or its corresponding type
declarations.

4 } from 'wechaty'
~~~~~~~~~
src/plugins/matchers/language-matcher.ts:3:16 - error TS2307: Cannot find module 'wechaty' or its corresponding typ
e declarations.

3 } from 'wechaty'
~~~~~~~~~
src/plugins/matchers/message-matcher.ts:4:18 - error TS2307: Cannot find module 'wechaty' or its corresponding type
declarations.

4 } from 'wechaty'
~~~~~~~~~
src/plugins/matchers/room-matcher.ts:4:20 - error TS2307: Cannot find module 'wechaty' or its corresponding type de
clarations.

4 } from 'wechaty'
~~~~~~~~~
src/plugins/matchers/string-matcher.ts:3:18 - error TS2307: Cannot find module 'wechaty' or its corresponding type
declarations.

3 } from 'wechaty'
~~~~~~~~~
src/plugins/talkers/contact-talker.ts:5:22 - error TS2307: Cannot find module 'wechaty' or its corresponding type d
eclarations.

5 } from 'wechaty'
~~~~~~~~~
src/plugins/talkers/contact-talker.ts:6:23 - error TS2307: Cannot find module 'mustache' or its corresponding type
declarations.

6 import Mustache from 'mustache'
~~~~~~~~~~
src/plugins/talkers/message-talker.ts:5:22 - error TS2307: Cannot find module 'wechaty' or its corresponding type d
eclarations.

5 } from 'wechaty'
~~~~~~~~~
src/plugins/talkers/message-talker.ts:6:23 - error TS2307: Cannot find module 'mustache' or its corresponding type
declarations.

6 import Mustache from 'mustache'
~~~~~~~~~~
src/plugins/talkers/room-talker.ts:6:24 - error TS2307: Cannot find module 'wechaty' or its corresponding type decl
arations.

6 } from 'wechaty'
~~~~~~~~~
src/plugins/talkers/room-talker.ts:7:25 - error TS2307: Cannot find module 'mustache' or its corresponding type dec
larations.

7 import Mustache from 'mustache'
~~~~~~~~~~
src/plugins/types/talker-message.ts:4:26 - error TS2307: Cannot find module 'wechaty' or its corresponding type dec
larations.

4 } from 'wechaty'
~~~~~~~~~
src/plugins/types/talker-message.ts:8:26 - error TS2307: Cannot find module 'wechaty' or its corresponding type dec
larations.

8 } from 'wechaty'
~~~~~~~~~
src/proxy/chatgpt-proxy.ts:2:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declaration
s.

2 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/chatgpt-proxy.ts:7:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

7 } from 'wechaty'
~~~~~~~~~
src/proxy/chatgpt-proxy.ts:8:10 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMess
age'.

8 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~~~~~~~~~~~~
src/proxy/chatgpt-proxy.ts:8:29 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

8 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~
src/proxy/ernie-proxy.ts:3:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

3 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/ernie-proxy.ts:8:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

8 } from 'wechaty'
~~~~~~~~~
src/proxy/ernie-proxy.ts:9:10 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMessag
e'.

9 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~~~~~~~~~~~~
src/proxy/ernie-proxy.ts:9:29 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

9 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~
src/proxy/mqtt-agent.ts:1:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

1 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/mqtt-agent.ts:7:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

7 } from 'wechaty'
~~~~~~~~~
src/proxy/mqtt-agent.ts:12:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMessage
'.

12 formatSentMessage,
~~~~~~~~~~~~~~~~~
src/proxy/mqtt-agent.ts:13:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

13 logger,
~~~~~~
src/proxy/mqtt-proxy.ts:3:20 - error TS2307: Cannot find module 'moment' or its corresponding type declarations.

3 import moment from 'moment'
~~~~~~~~
src/proxy/mqtt-proxy.ts:4:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

4 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/mqtt-proxy.ts:12:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

12 } from 'wechaty'
~~~~~~~~~
src/proxy/mqtt-proxy.ts:16:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMessage
'.

16 formatSentMessage,
~~~~~~~~~~~~~~~~~
src/proxy/mqtt-proxy.ts:17:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

17 logger,
~~~~~~
src/proxy/s3-proxy.ts:2:37 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

2 import { log, Message, types } from 'wechaty'
~~~~~~~~~
src/proxy/s3-proxy.ts:3:24 - error TS2307: Cannot find module 'minio' or its corresponding type declarations.

3 import { Client } from 'minio'
~~~~~~~
src/proxy/s3-proxy.ts:19:43 - error TS7006: Parameter 'e' implicitly has an 'any' type.

19 , file_payload.fileContent, function (e) {
~
src/proxy/wechaty-api.ts:1:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declarations.

1 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/wechaty-api.ts:7:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

7 } from 'wechaty'
~~~~~~~~~
src/proxy/wechaty-api.ts:12:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'formatSentMessag
e'.

12 formatSentMessage,
~~~~~~~~~~~~~~~~~
src/proxy/wechaty-api.ts:13:3 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

13 logger,
~~~~~~
src/proxy/weixin-chatbot-proxy.ts:2:25 - error TS2307: Cannot find module 'file-box' or its corresponding type decl
arations.

2 import { FileBox } from 'file-box'
~~~~~~~~~~
src/proxy/weixin-chatbot-proxy.ts:9:8 - error TS2307: Cannot find module 'wechaty' or its corresponding type declar
ations.

9 } from 'wechaty'
~~~~~~~~~
src/proxy/weixin-chatbot-proxy.ts:10:10 - error TS2305: Module '"../utils/utils.js"' has no exported member 'format
SentMessage'.

10 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~~~~~~~~~~~~
src/proxy/weixin-chatbot-proxy.ts:10:29 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger
'.

10 import { formatSentMessage, logger } from '../utils/utils.js'
~~~~~~
src/services/activityService.ts:2:54 - error TS2307: Cannot find module 'wechaty' or its corresponding type declara
tions.

2 import { Room, Contact, Message, Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/activityService.ts:4:39 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

4 import { formatTimestamp, getCurTime, logger } from '../utils/utils.js'
~~~~~~
src/services/activityService.ts:5:20 - error TS2307: Cannot find module 'moment' or its corresponding type declarat
ions.

5 import moment from 'moment'
~~~~~~~~
src/services/configService.ts:2:54 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarati
ons.

2 import { Contact, Message, Room, Sayable, log } from 'wechaty'
~~~~~~~~~
src/services/contactService.ts:2:39 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarat
ions.

2 import { Contact, Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/contactService.ts:3:17 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

3 import { delay, logger } from '../utils/utils.js'
~~~~~~
src/services/envService.ts:3:21 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations
.

3 import { log } from 'wechaty'
~~~~~~~~~
src/services/envService.ts:4:10 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

4 import { logger } from '../utils/utils.js'
~~~~~~
src/services/groupNoticeService.ts:4:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type decl
arations.

4 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/groupNoticeService.ts:6:39 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logger'.

6 import { generateRandomNumber, delay, logger } from '../utils/mod.js'
~~~~~~
src/services/keywordService.ts:3:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarat
ions.

3 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/messageService.ts:3:58 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarat
ions.

3 import { Message, ScanStatus, types, Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/messageService.ts:4:29 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

4 import { getCurTime, delay, logger } from '../utils/utils.js'
~~~~~~
src/services/messageService.ts:5:20 - error TS2307: Cannot find module 'moment' or its corresponding type declarati
ons.

5 import moment from 'moment'
~~~~~~~~
src/services/messageService.ts:6:25 - error TS2307: Cannot find module 'file-box' or its corresponding type declara
tions.

6 import { FileBox } from 'file-box'
~~~~~~~~~~
src/services/noticeService.ts:2:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarati
ons.

2 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/noticeService.ts:4:22 - error TS2307: Cannot find module 'node-schedule' or its corresponding type dec
larations.

4 import schedule from 'node-schedule'
~~~~~~~~~~~~~~~
src/services/noticeService.ts:5:17 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logger'.

5 import { delay, logger } from '../utils/mod.js'
~~~~~~
src/services/orderService.ts:2:17 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

2 import { delay, logger } from '../utils/utils.js'
~~~~~~
src/services/orderService.ts:6:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declaratio
ns.

6 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/qaService.ts:3:10 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logger'.

3 import { logger } from '../utils/mod.js'
~~~~~~
src/services/qaService.ts:5:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

5 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/roomService.ts:2:36 - error TS2307: Cannot find module 'wechaty' or its corresponding type declaration
s.

2 import { Room, Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/roomService.ts:3:17 - error TS2305: Module '"../utils/utils.js"' has no exported member 'logger'.

3 import { delay, logger } from '../utils/utils.js'
~~~~~~
src/services/statisticService.ts:3:10 - error TS2305: Module '"../utils/mod.js"' has no exported member 'logger'.

3 import { logger } from '../utils/mod.js'
~~~~~~
src/services/statisticService.ts:5:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declar
ations.

5 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/userService.ts:7:36 - error TS2307: Cannot find module 'wechaty' or its corresponding type declaration
s.

7 import { Contact, Room, log } from 'wechaty'
~~~~~~~~~
src/services/whiteListService.ts:6:30 - error TS2307: Cannot find module 'wechaty' or its corresponding type declar
ations.

6 import { Wechaty, log } from 'wechaty'
~~~~~~~~~
src/services/wxopenaiService.ts:2:16 - error TS2307: Cannot find module 'request-promise' or its corresponding type
declarations.

2 import rp from 'request-promise'
~~~~~~~~~~~~~~~~~
src/services/wxopenaiService.ts:3:27 - error TS2307: Cannot find module 'wxcrypt' or its corresponding type declara
tions.

3 import WXBizMsgCrypt from 'wxcrypt'
~~~~~~~~~
src/services/wxopenaiService.ts:4:20 - error TS7016: Could not find a declaration file for module 'xml2js'. 'C:/Use
rs/Administrator/Documents/chatflow-admin-dev/node_modules/xml2js/lib/xml2js.js' implicitly has an 'any' type.
Try npm i --save-dev @types/xml2js if it exists or add a new declaration (.d.ts) file containing declare modul e 'xml2js';

4 import xml2js from 'xml2js'
~~~~~~~~
src/types/interface.ts:2:39 - error TS2307: Cannot find module 'wechaty' or its corresponding type declarations.

2 import type { Message, Wechaty } from 'wechaty'
~~~~~~~~~
src/utils/auth.ts:3:10 - error TS2305: Module '"./utils.js"' has no exported member 'logForm'.

3 import { logForm } from './utils.js'
~~~~~~~
src/utils/openai-sdk/lib/util.ts:7:18 - error TS2307: Cannot find module 'njwt' or its corresponding type declarati
ons.

7 import nJwt from 'njwt'
~~~~~~
src/utils/openai-sdk/lib/util.ts:8:21 - error TS2307: Cannot find module 'request' or its corresponding type declar
ations.

8 import request from 'request'
~~~~~~~~~
src/utils/request.ts:7:3 - error TS2305: Module '"./utils.js"' has no exported member 'logger'.

7 logger,
~~~~~~
tests/auth.ts:31:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set t
o 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.

31 await authClient.login(process.env.VIKA_SPACE_ID, process.env.VIKA_TOKEN)

tests/auth.ts:45:28 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set
to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.

45 const chatbotUsersDetail = await ServeGetChatbotUsersDetail()
                           ~~~~~
tests/lark-orm-test.ts:7:16 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option
is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hig
her.

7 const dbInit = await db.createSheet({
              ~~~~~
tests/lark-orm-test.ts:14:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option
is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hig
her.

14 await db.createSheet

tests/lark-orm-test.ts:63:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option
is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hig
her.

63 await env.setVikaOptions({

tests/lark-orm-test.ts:70:20 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' optio
n is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hi
gher.

70 const recordsAll = await env.findAll()
                   ~~~~~
tests/lark-orm-test.ts:94:14 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' optio
n is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hi
gher.

94 const res1 = await env.create(record)
             ~~~~~
tests/lark-orm-test.ts:97:14 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' optio
n is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hi
gher.

97 const res2 = await env.createBatch(records)
             ~~~~~
tests/lark-orm-test.ts:110:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

110 const recordsAll3 = await env.findAll()
                     ~~~~~
tests/lark-orm-test.ts:134:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

134 const recordsAll5 = await env.updatEmultiple(recordsAll4)
                     ~~~~~
tests/lark-orm-test.ts:140:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

140 const recordsAll6 = await env.update(newRecord2.record_id as string, newRecord2.fields)
                     ~~~~~
tests/lark-orm-test.ts:147:16 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

147   const res4 = await env.deleteBatch(ids)
                ~~~~~
tests/lark-orm-test.ts:151:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

151 const recordsAll7 = await env.findByField('name', 'Wechaty-Puppet')
                     ~~~~~
tests/lark-orm-test.ts:222:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' optio
n is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hi
gher.

222 await messages.setVikaOptions({
 ~~~~~
tests/lark-orm-test.ts:230:14 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

230 const file = await messages.upload('/Users/luyuchao/Documents/GitHub/chatflow/data/media/image/qrcode/qrcode.pn
g')
              ~~~~~
tests/lark-orm-test.ts:241:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' opti
on is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or h
igher.

241 const recordsAll9 = await messages.create(record9)
                     ~~~~~
tests/lark.ts:16:14 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set
to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.

16 const user = await client.contact.user.batchGetId({
             ~~~~~
tests/lark.ts:26:18 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set
to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.

26   const tables = await client.bitable.appTable.list({ path:{ app_token } })
                 ~~~~~
tests/lark.ts:32:22 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set
to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.

32       const fields = await client.bitable.appTableField.list({ path:{ app_token, table_id } })
                     ~~~~~
tests/vika-orm-test.ts:7:16 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option
is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hig
her.

7 const dbInit = await db.init({
              ~~~~~
tests/vika-orm-test.ts:61:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option
is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hig
her.

61 await env.setVikaOptions({

tests/vika-orm-test.ts:66:17 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' optio
n is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or hi
gher.

66 const envData = await env.findAll()
~~~~~

Found 185 error(s).

PS C:\Users\Administrator\Documents\chatflow-admin-dev>

@atorber
Copy link
Owner

atorber commented Mar 6, 2024

看起来是因为没有按说明文档操作:

  1. 请检查操作的准确性https://www.yuque.com/atorber/chatflow/gbpvgf01cw0nlxu4
  2. nodejs的版本(nodejs16、18)

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

2 participants