Тэги:
#vue #typescript #javascript #mevn #vue3 #nodejsКомментарии:
❤
ОтветитьХоть я и не писал в предыдущих видео, но пока что смотрю на одном дыхании, respect for you and your quality content
Ответитьyarn run v1.22.19
$ nodemon
[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src\*\
[nodemon] watching extensions: ts
[nodemon] starting `ts-node ./src/index`
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\Users\Андрей\Desktop\torent\node_modules\webtorrent\index.js
require() of ES modules is not supported.
require() of C:\Users\Андрей\Desktop\torent\node_modules\webtorrent\index.js from C:\Users\Андрей\Desktop\torent\src\modules\stream\stream.controller.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from C:\Users\Андрей\Desktop\torent\node_modules\webtorrent\package.json.
at Module._extensions..js (internal/modules/cjs/loader.js:1102:13)
at Object.require.extensions.<computed> [as .js] (C:\Users\Андрей\Desktop\torent\node_modules\ts-node\src\index.ts:1608:43)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (C:\Users\Андрей\Desktop\torent\src\modules\stream\stream.controller.ts:2:1)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Module.m._compile (C:\Users\Андрей\Desktop\torent\node_modules\ts-node\src\index.ts:1618:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10) {
code: 'ERR_REQUIRE_ESM'
}
[nodemon] app crashed - waiting for file changes before starting...
А какая версия webtorentta в проекте? Пишу поралельно видео но у меня вылетает ошибка [nodemon] app crashed - waiting for file changes before starting...
ОтветитьНе совсем понял, в конце был виден прогресс загрузки, но куда качается файл?
Ответитьты nestjs не юзаешь ?
Ответить