Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
111100001 opened this issue Jun 8, 2024 · 6 comments · May be fixed by #525
Closed

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

111100001 opened this issue Jun 8, 2024 · 6 comments · May be fixed by #525
Labels
bug Something isn't working

Comments

@111100001
Copy link

111100001 commented Jun 8, 2024

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

@111100001 111100001 added the bug Something isn't working label Jun 8, 2024
@MrBrax
Copy link
Owner

MrBrax commented Jun 9, 2024

quite odd, are you using node 22?

@111100001
Copy link
Author

111100001 commented Jun 9, 2024 via email

@MrBrax
Copy link
Owner

MrBrax commented Jun 9, 2024

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

@111100001
Copy link
Author

111100001 commented Jun 9, 2024

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
Copy link
Owner

MrBrax commented Jun 9, 2024

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

@111100001
Copy link
Author

closed because everything is running smoothly so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants