MrBrax / LiveStreamDVR

An automatic livestream recorder
MIT License
330 stars 25 forks source link

got error while trying to "yarn run build" in client-vue directory #511

Closed 111100001 closed 3 months ago

111100001 commented 3 months ago

Describe the bug i'm performing a new installation of this repo. i did all the steps with no errors until i ran yarn run build in the client-vue directory and got this error:

ubuntu@archiver:~/DVR/LiveStreamDVR/client-vue$ yarn run build
src/components/vod/VodItemBookmarks.vue:16:38 - error TS2322: Type '{ name: string; params: { uuid: string; }; query: { start: number | undefined; }; } | undefined' is not assignable to type 'RouteLocationRaw'.

16                         <router-link :to="playerLink(bookmark)"> {{ humanDuration(bookmark.offset || 0) }} - {{ bookmark.name }} </router-link>
                                        ~~~

  node_modules/vue-router/dist/vue-router.d.ts:1158:5
    1158     to: RouteLocationRaw;
             ~~
    The expected type comes from property 'to' which is declared here on type 'AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterLinkProps & Record<string, unknown>'

Found 1 error in src/components/vod/VodItemBookmarks.vue:16

ERROR: "type-check" exited with 2.`

To Reproduce Steps to reproduce the behavior:

  1. Go to 'client-vue'
  2. yarn install
  3. yarn run build
  4. See error

Server:

Ubuntu

MrBrax commented 3 months ago

quite odd, are you using node 22?

111100001 commented 3 months ago

yes. i installed all the requirements with their latest versions before building.

anyways the build is running despite the error and haven't faced any issue so far.

On Sun, Jun 9, 2024, 12:56 PM MrBrax @.***> wrote:

quite odd, are you using node 22?

— Reply to this email directly, view it on GitHub https://github.com/MrBrax/LiveStreamDVR/issues/511#issuecomment-2156421359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFY3LT3HZH7J32NCNJPW5L3ZGQRFVAVCNFSM6AAAAABJAFUUSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGQZDCMZVHE . You are receiving this because you authored the thread.Message ID: @.***>

MrBrax commented 3 months ago

the requirements are already packaged with yarn, did it actually install new packages?

111100001 commented 3 months ago

sorry by requirements i meant these:


[node.js](https://nodejs.org/) 20+
npm and yarn 3+
Python 3.9+
[pip](https://pypi.org/project/pip/)
[FFmpeg](https://ffmpeg.org/download.html)
[MediaInfo](https://mediaarea.net/en/MediaInfo)
[TwitchDownloader](https://github.com/lay295/TwitchDownloader) 

i installed each one separately and made sure they are the latest versions before running any yarn command.

However another issue arises:

i tried to set up the whole thing on my WSL to see if i get the same error but got a different error in the same place as the first error.

lucky@rebyc:~/LiveStreamDVR/client-vue$ yarn run build


vite v4.5.0 building for production...
✓ 112 modules transformed.
[vite-plugin-pwa:build] Could not resolve "../../../twitch-vod-chat/dist-lib/twitch-vod-chat" from "src/views/VodPlayerView.vue?vue&type=script&setup=true&lang.ts"
file: /home/lucky/LiveStreamDVR/client-vue/src/views/VodPlayerView.vue?vue&type=script&setup=true&lang.ts
error during build:
RollupError: Could not resolve "../../../twitch-vod-chat/dist-lib/twitch-vod-chat" from "src/views/VodPlayerView.vue?vue&type=script&setup=true&lang.ts"
    at error (file:///home/lucky/LiveStreamDVR/client-vue/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
    at ModuleLoader.handleInvalidResolvedId (file:///home/lucky/LiveStreamDVR/client-vue/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24860:24)
    at file:///home/lucky/LiveStreamDVR/client-vue/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24822:26
ERROR: "build-only" exited with 1.
MrBrax commented 3 months ago

i would advise to use the docker container if you can, but it seems like you haven't built twitch-vod-chat yet

111100001 commented 3 months ago

closed because everything is running smoothly so far