Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.04k stars 1.5k forks source link

Warnings during build #5786

Closed paymanzafar1 closed 1 year ago

paymanzafar1 commented 1 year ago

Describe the problem

I am going to build the latest version of PeerTube. I have installed all the required packages for version 5.1.0. During the execution of "yarn install --pure-lockfile" the following warnings are shown:

yarn install v1.22.19 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/5] Validating package.json... [2/5] Resolving packages... warning @angular/cli > pacote > @npmcli/run-script > node-gyp > make-fetch-happen > cacache > @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs warning depcheck > @vue/compiler-sfc > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead [3/5] Fetching packages... [4/5] Linking dependencies... warning " > @aws-sdk/lib-storage@3.328.0" has unmet peer dependency "@aws-sdk/abort-controller@^3.0.0". warning " > @typescript-eslint/eslint-plugin@5.59.2" has unmet peer dependency "@typescript-eslint/parser@^5.0.0". warning "swagger-cli > @apidevtools/swagger-cli > @apidevtools/swagger-parser@10.1.0" has unmet peer dependency "openapi-types@>=7". [5/5] Building fresh packages... $ test -n "$NOCLIENT" || (cd client && yarn install --pure-lockfile) yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > primeng@15.2.0" has unmet peer dependency "primeicons@^6.0.1". warning " > stylelint-config-sass-guidelines@9.0.1" has incorrect peer dependency "stylelint@^14.0.1". warning "stylelint-config-sass-guidelines > stylelint-order@5.0.0" has incorrect peer dependency "stylelint@^14.0.0". warning " > wdio-chromedriver-service@7.3.2" has unmet peer dependency "webdriverio@^7.0.0". [4/4] Building fresh packages... Done in 136.11s. Done in 1108.22s.

Additional information

Chocobozzz commented 1 year ago

warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

It seems your peertube directory is dirty. I suggest to do a fresh build: https://docs.joinpeertube.org/install/unofficial#git

paymanzafar1 commented 1 year ago

I did the same, and the following warnings are still there:

yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... warning " > @aws-sdk/lib-storage@3.272.0" has unmet peer dependency "@aws-sdk/abort-controller@^3.0.0". warning " > @typescript-eslint/eslint-plugin@5.52.0" has unmet peer dependency "@typescript-eslint/parser@^5.0.0". warning "swagger-cli > @apidevtools/swagger-cli > @apidevtools/swagger-parser@10.1.0" has unmet peer dependency "openapi-types@>=7". [5/5] Building fresh packages... $ test -n "$NOCLIENT" || (cd client && yarn install --pure-lockfile) yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > primeng@15.2.0" has unmet peer dependency "primeicons@^6.0.1". warning " > stylelint-config-sass-guidelines@9.0.1" has incorrect peer dependency "stylelint@^14.0.1". warning "stylelint-config-sass-guidelines > stylelint-order@5.0.0" has incorrect peer dependency "stylelint@^14.0.0". warning " > wdio-chromedriver-service@7.3.2" has unmet peer dependency "webdriverio@^7.0.0". [4/4] Building fresh packages... Done in 60.45s. Done in 84.05s.

paymanzafar1 commented 1 year ago

and during "npm run build":

[1:55:11 PM] Project 'shared/tsconfig.json' is out of date because output file 'dist/shared/tsconfig.tsbuildinfo' does not exist

[1:55:11 PM] Building project '/var/www/peertube/versions/peertube-develop/shared/tsconfig.json'...

[1:55:17 PM] Project 'server/tsconfig.json' is out of date because output file 'dist/server/tsconfig.tsbuildinfo' does not exist

[1:55:17 PM] Building project '/var/www/peertube/versions/peertube-develop/server/tsconfig.json'...

Chocobozzz commented 1 year ago

Other warnings are not important

paymanzafar1 commented 1 year ago

These warnings are the same as in my original post.

Chocobozzz commented 1 year ago

In your original post warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json was important. The other ones are not and unfortunately I don't think we can hide them.