Создаем VUE стриминговый сервис за 12 часов (Часть 3) - Подключаемся к webtorrent

Создаем VUE стриминговый сервис за 12 часов (Часть 3) - Подключаемся к webtorrent

Ararat Martirossyan

1 год назад

2,642 Просмотров

Третья часть из цикла уроков по созданию своего стримингового сервиса на Vue 3.
В этом уроке мы подключаемся к сети Webtorrent и начинаем работать с удаленными файлами.

#vue #nodejs #typescript #vue3 #pinia #netflix #jslessons


Используемые технологии:
Typescript, Vue, NodeJs, Torrent

https://www.patreon.com/icwt​ - Мне на Кофе

https://t.me/icwtcommunity​ - Наш телеграм канал
http://instagram.com/nakamuramax​ - Мой инстаграм

Программы что я использую:
https://code.visualstudio.com/​ - Редактор кода
https://iterm2.com/​ - Терминал
https://ohmyz.sh/​ - оболочка терминала
https://www.postman.com/​ - Для тестирования АПИ

Тэги:

#vue #typescript #javascript #mevn #vue3 #nodejs
Ссылки и html тэги не поддерживаются


Комментарии:

ОРХ
ОРХ - 19.03.2023 02:21

Ответить
Vladyslav Soltanovskyi
Vladyslav Soltanovskyi - 14.02.2023 19:47

Хоть я и не писал в предыдущих видео, но пока что смотрю на одном дыхании, respect for you and your quality content

Ответить
Mr. Green
Mr. Green - 27.01.2023 20:40

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...

Ответить
Mr. Green
Mr. Green - 27.01.2023 20:40

А какая версия webtorentta в проекте? Пишу поралельно видео но у меня вылетает ошибка [nodemon] app crashed - waiting for file changes before starting...

Ответить
Grigory M
Grigory M - 08.10.2022 15:39

Не совсем понял, в конце был виден прогресс загрузки, но куда качается файл?

Ответить
А
А - 06.10.2022 13:36

ты nestjs не юзаешь ?

Ответить