Closed Ampdale closed 5 months ago
That does seems strange. How did you update the script? The best way to do it is to backup your account.json, config.json and the session folder, install the new version, and then paste them into the new version.
What i think is happening is that he doesn't find the modules. Maybe you didn't make the npm i
in the reinstallation?
Seems indeed like you missed a step by installing the packages.
src/browser/Browser.ts:1:24 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import playwright from 'playwright'
src/browser/Browser.ts:4:36 - error TS2307: Cannot find module 'fingerprint-injector' or its corresponding type declarations.
4 import { newInjectedContext } from 'fingerprint-injector'
src/browser/BrowserFunc.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/browser/BrowserFunc.ts:106:64 - error TS7006: Parameter 'scriptContent' implicitly has an 'any' type.
106 const dashboardData = await this.bot.homePage.evaluate(scriptContent => {
src/browser/BrowserFunc.ts:197:62 - error TS7006: Parameter 'element' implicitly has an 'any' type.
197 const scriptContent = $('script').filter((index, element) => {
src/functions/Activities.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/functions/activities/Poll.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/functions/activities/Quiz.ts:33:80 - error TS7006: Parameter 'el' implicitly has an 'any' type.
33 const answerAttribute = await answerSelector?.evaluate(el => el.getAttribute('iscorrectoption')) ~~
src/functions/activities/Quiz.ts:63:75 - error TS7006: Parameter 'el' implicitly has an 'any' type.
63 const dataOption = await answerSelector?.evaluate(el => el.getAttribute('data-option')) ~~
src/functions/activities/Search.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/functions/activities/Search.ts:3:26 - error TS2307: Cannot find module 'os' or its corresponding type declarations.
3 import { platform } from 'os'
src/functions/activities/ThisOrThat.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/functions/Login.ts:1:22 - error TS2307: Cannot find module 'playwright' or its corresponding type declarations.
1 import { Page } from 'playwright'
src/functions/Login.ts:8:12 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.8 input: process.stdin,
src/functions/Login.ts:79:55 - error TS7006: Parameter 'input' implicitly has an 'any' type.
79 rl.question('Enter 2FA code:\n', (input) => {
src/index.ts:1:21 - error TS2307: Cannot find module 'cluster' or its corresponding type declarations.
1 import cluster from 'cluster'
src/index.ts:82:29 - error TS7006: Parameter 'worker' implicitly has an 'any' type.
82 cluster.on('exit', (worker, code) => {
src/index.ts:90:17 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.90 process.exit(0)
src/index.ts:98:9 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.98 process.on('message', async ({ chunk }) => {
src/index.ts:123:9 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.123 process.exit(0)
src/util/Load.ts:2:47 - error TS2307: Cannot find module 'fingerprint-generator' or its corresponding type declarations.
2 import { BrowserFingerprintWithHeaders } from 'fingerprint-generator'
src/util/Load.ts:4:18 - error TS2307: Cannot find module 'path' or its corresponding type declarations.
4 import path from 'path'
src/util/Load.ts:20:38 - error TS2304: Cannot find name '__dirname'.
20 const accountDir = path.join(__dirname, '../', file)
src/util/Load.ts:43:38 - error TS2304: Cannot find name '__dirname'.
43 const cookieFile = path.join(__dirname, '../browser/', sessionPath, email,
${isMobile ? 'mobile_cookies' : 'desktop_cookies'}.json
)src/util/Load.ts:75:38 - error TS2304: Cannot find name '__dirname'.
75 const sessionDir = path.join(__dirname, '../browser/', sessionPath, email)
src/util/Logger.ts:10:45 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.10 str =
[${currentTime}] [PID: ${process.pid}] [WARN] [${title}] ${message}
src/util/Logger.ts:20:45 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
.20 str =
[${currentTime}] [PID: ${process.pid}] [LOG] [${title}] ${message}
src/util/Webhook.ts:1:19 - error TS2307: Cannot find module 'axios' or its corresponding type declarations.
1 import axios from 'axios'