KR
Size: a a a
KR
AC
V
ts-node src/index.ts
Error [ERR_REQUIRE_ESM]: require() of ES Module Package/node_modules/node-fetch/src/index.js from Package/src/index.ts not supported.
Instead change the require of index.js in Package/src/index.ts to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (Package/src/index.ts:9:38)
at Module.m._compile (Package/node_modules/ts-node/dist/index.js:704:29)
at Object.require.extensions.<computed> [as .ts] (Package/node_modules/ts-node/dist/index.js:706:16)
at main (Package/node_modules/ts-node/dist/bin.js:237:16)
at Object.<anonymous> (Package/node_modules/ts-node/dist/bin.js:350:5) {
code: 'ERR_REQUIRE_ESM'
}
V

V
V
Error [ERR_REQUIRE_ESM]: require() of ES Module Project/node_modules/node-fetch/src/index.js from Project/src/index.ts not supported.
Instead change the require of index.js in Project/src/index.ts to a dynamic import() which is available in all CommonJS modules.
IK
IK
V
V
node-fetch:
Error [ERR_REQUIRE_ESM]: require() of ES Module Project/node_modules/node-fetch/src/index.js from Project/src/index.ts not supported.
Instead change the require of index.js in Project/src/index.ts to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (Project/src/index.ts:6:38)
at Module.m._compile (Project/node_modules/ts-node/dist/index.js:704:29)
at Object.require.extensions.<computed> [as .ts] (Project/node_modules/ts-node/dist/index.js:706:16)
at main (Project/node_modules/ts-node/dist/bin.js:237:16)
at Object.<anonymous> (Project/node_modules/ts-node/dist/bin.js:350:5) {
code: 'ERR_REQUIRE_ESM'
}V
V
V
node-fetch но ему просто пох он выводит ошибку загрузки ес скриптовV
V
V
IK
IK
V
IK