Это index.ts
`
Код: Выделить всё
import {ethers} from "ethers";
import {ApiKeyCreds, ClobClient, OrderType, Side} from "@polymarket/clob-client";
console.log("Hello world")
package.json
`
Код: Выделить всё
{
"name": "polymarket",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "ts-node src/index.ts",
"start": "node dist/index.js"
},
"keywords": [],
"author": "Kharay 33455",
"license": "ISC",
"dependencies": {
"@polymarket/clob-client": "^5.1.0",
"@types/node": "^25.0.0",
"ethers": "^6.16.0",
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
}
}
tsconfig.json
`
Код: Выделить всё
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"rootDir": "./src",
"outDir": "./dist",
"strict": true,
"esModuleInterop": true
}
}
Я пробовал удалить и переустановить
Создать папку типов и экспортировать.
Глобально установить
Все еще не могу найти. Любой совет в правильном направлении действительно поможет
Подробнее здесь: https://stackoverflow.com/questions/798 ... gh-it-is-i
Мобильная версия