Closed EdwardMoyse closed 10 months ago
I am following: https://yarnpkg.com/getting-started/migration#step-by-step
So, so far I have done:
git clone git@github.com:HSF/phoenix.git
cd phoenix
npm install -g yarn
yarn set version berry
nano .yarnrc.yml # Add nodeLinker: node-modules in your .yarnrc.yml file
yarn install
This fails with one error
➤ YN0009: │ root@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/b7/b7z48zls66s0_bfx17cwj60w0000gn/T/xfs-a7db2fb5/build.log)
As per discussion #541 I tried to update to jsroot 7.3.0, which seems to work.
After #547 was merged, I now see:
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @lerna/version@npm:6.3.0 doesn't provide nx (pb6f43), requested by @nrwl/devkit
➤ YN0002: │ @nrwl/devkit@npm:15.4.2 [20f9d] doesn't provide typescript (pb83fd), requested by @phenomnomnominal/tsquery
➤ YN0002: │ @nrwl/devkit@npm:15.4.2 [7f983] doesn't provide typescript (p93904), requested by @phenomnomnominal/tsquery
➤ YN0002: │ phoenix-event-display@workspace:packages/phoenix-event-display doesn't provide @babel/core (p6aee7), requested by @babel/plugin-transform-runtime
➤ YN0002: │ phoenix-event-display@workspace:packages/phoenix-event-display doesn't provide jest (p26a39), requested by ts-jest
➤ YN0002: │ phoenix-event-display@workspace:packages/phoenix-event-display doesn't provide typescript (p70bbb), requested by ts-jest
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides @angular/common (p2a6d5) with version 15.0.4, which doesn't satisfy what @rp3e11/ngx-slider requests
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides @angular/common (p0cd7d) with version 15.0.4, which doesn't satisfy what phoenix-ui-components and some of its descendants request
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides @angular/core (p5c10f) with version 15.0.4, which doesn't satisfy what @rp3e11/ngx-slider requests
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides @angular/core (pf9255) with version 15.0.4, which doesn't satisfy what phoenix-ui-components and some of its descendants request
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides @angular/forms (p2e783) with version 15.0.4, which doesn't satisfy what @rp3e11/ngx-slider requests
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides cypress (pf972e) with version 12.2.0, which doesn't satisfy what cypress-plugin-snapshots requests
➤ YN0002: │ phoenix-ng@workspace:packages/phoenix-ng doesn't provide jest (pf5e0b), requested by jest-preset-angular
➤ YN0060: │ phoenix-ng@workspace:packages/phoenix-ng provides ng-packagr (p9f9d3) with version 15.0.3, which doesn't satisfy what @angular-devkit/build-ng-packagr requests
➤ YN0002: │ phoenix-ng@workspace:packages/phoenix-ng doesn't provide typescript (pc27e5), requested by @angular-devkit/build-angular
➤ YN0002: │ phoenix-ng@workspace:packages/phoenix-ng doesn't provide typescript (p2abe2), requested by @angular/compiler-cli
➤ YN0002: │ phoenix-ng@workspace:packages/phoenix-ng doesn't provide typescript (pc0f36), requested by jest-preset-angular
➤ YN0002: │ phoenix-ng@workspace:packages/phoenix-ng doesn't provide typescript (p57037), requested by ng-packagr
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide @angular/animations (p7d8d4), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide @angular/forms (p499c9), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide @angular/forms (p225c7), requested by @rp3e11/ngx-slider
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide @angular/platform-browser (pfd02b), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide rxjs (p5ddc1), requested by @angular/cdk
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components doesn't provide rxjs (p95434), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide @angular/animations (pc02ec), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide @angular/forms (pa35ec), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide @angular/forms (p46878), requested by @rp3e11/ngx-slider
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide @angular/platform-browser (p8e2b6), requested by @angular/material
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide rxjs (pb3dd1), requested by @angular/cdk
➤ YN0002: │ phoenix-ui-components@workspace:packages/phoenix-ng/projects/phoenix-ui-components [107a7] doesn't provide rxjs (pe0e2a), requested by @angular/material
➤ YN0002: │ root@workspace:. doesn't provide ts-jest (pc27f3), requested by ts-jest-mock-import-meta
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
Looks like the nrwl
ones won't get fixed any time soon:
https://github.com/nrwl/nx/issues/12545
ngx-slider
seems unmaintained:
https://github.com/angular-slider/ngx-slider/pulls
Not sure about this one:
Warning: /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-event-display/dist/managers/three-manager/index.js depends on 'html2canvas'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
After #550, I see:
emoyse@Edwards-MBP phoenix % yarn dlx @yarnpkg/doctor
➤ YN0000: ┌ Resolution step
➤ YN0060: │ @yarnpkg/plugin-interactive-tools@npm:4.0.0-rc.36 [aca56] provides react (p2ca67) with version 16.14.0, which doesn't satisfy what ink and some of its descendants request
➤ YN0060: │ @yarnpkg/plugin-version@npm:4.0.0-rc.36 [aca56] provides react (p27680) with version 16.14.0, which doesn't satisfy what ink and some of its descendants request
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 5s 661ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ type-fest@npm:0.12.0 can't be found in the cache and will be fetched from the remote regis
➤ YN0013: │ type-fest@npm:0.15.1 can't be found in the cache and will be fetched from the remote regis
➤ YN0013: │ widest-line@npm:3.1.0 can't be found in the cache and will be fetched from the remote regi
➤ YN0013: │ ws@npm:7.5.9 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yoga-layout-prebuilt@npm:1.10.0 can't be found in the cache and will be fetched from the r
➤ YN0000: └ Completed in 4s 300ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 801ms
➤ YN0000: Done with warnings in 10s 791ms
➤ YN0000: Found 4 package(s) to process
➤ YN0000: For a grand total of 325 file(s) to validate
➤ YN0000: ┌ /Users/emoyse/LocalDocuments/phoenix/package.json
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/docs/api-docs/api-docs/js/libs/prism.js:14:247: Undeclared dependency on clipboard
➤ YN0000: │ Resolving @types/jest@~29.4.0 errored with @types/jest@~29.4.0 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/node@^18.11.18 errored with @types/node@^18.11.18 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/three@^0.147.1 errored with @types/three@^0.147.1 isn't supported by any available resolver
➤ YN0000: │ Resolving @typescript-eslint/eslint-plugin@^5.49.0 errored with @typescript-eslint/eslint-plugin@^5.49.0 isn't supported by any available resolver
➤ YN0000: │ Resolving @typescript-eslint/parser@^5.49.0 errored with @typescript-eslint/parser@^5.49.0 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint@^8.32.0 errored with eslint@^8.32.0 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint-config-prettier@^8.6.0 errored with eslint-config-prettier@^8.6.0 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint-plugin-prettier@^4.2.1 errored with eslint-plugin-prettier@^4.2.1 isn't supported by any available resolver
➤ YN0000: │ Resolving jest@~29.4.1 errored with jest@~29.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving jest-environment-jsdom@~29.4.1 errored with jest-environment-jsdom@~29.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving lerna@^6.4.1 errored with lerna@^6.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving prettier@^2.8.3 errored with prettier@^2.8.3 isn't supported by any available resolver
➤ YN0000: │ Resolving rimraf@^4.1.2 errored with rimraf@^4.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving ts-jest-mock-import-meta@^1.0.0 errored with ts-jest-mock-import-meta@^1.0.0 isn't supported by any available resolver
➤ YN0000: │ Resolving typescript@~4.9.4 errored with typescript@~4.9.4 isn't supported by any available resolver
➤ YN0000: └ Completed in 1s 86ms
➤ YN0000: ⠏ --------------------------------------------------------------------------------
➤ YN0000: ┌ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-event-display/package.json
➤ YN0000: │ User scripts prefixed with "pre" or "post" (like "prepublishOnly") will not be called in sequence anymore; prefer calling prologues and epilogues explicitly
➤ YN0000: │ User scripts prefixed with "pre" or "post" (like "prepare") will not be called in sequence anymore; prefer calling prologues and epilogues explicitly
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-event-display/configs/jest.conf.js:29:29: Strings should avoid referencing the node_modules directory (prefer require.resolve)
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-event-display/configs/webpack.conf.js:11:17: Webpack configs from non-private packages should avoid referencing loaders without require.resolve
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-event-display/configs/webpack.conf.js:14:19: Webpack configs from non-private packages should avoid referencing loaders without require.resolve
➤ YN0000: │ Resolving @babel/core@^7.20.12 errored with @babel/core@^7.20.12 isn't supported by any available resolver
➤ YN0000: │ Resolving @tweenjs/tween.js@^18.6.4 errored with @tweenjs/tween.js@^18.6.4 isn't supported by any available resolver
➤ YN0000: │ Resolving dat.gui@^0.7.9 errored with dat.gui@^0.7.9 isn't supported by any available resolver
➤ YN0000: │ Resolving html2canvas@^1.4.1 errored with html2canvas@^1.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving jsroot@^7.3.0 errored with jsroot@^7.3.0 isn't supported by any available resolver
➤ YN0000: │ Resolving jszip@^3.10.1 errored with jszip@^3.10.1 isn't supported by any available resolver
➤ YN0000: │ Resolving stats-js@^1.0.1 errored with stats-js@^1.0.1 isn't supported by any available resolver
➤ YN0000: │ Resolving three@^0.148.0 errored with three@^0.148.0 isn't supported by any available resolver
➤ YN0000: │ Resolving @babel/helper-string-parser@^7.19.4 errored with @babel/helper-string-parser@^7.19.4 isn't supported by any available resolver
➤ YN0000: │ Resolving @babel/plugin-transform-runtime@^7.19.6 errored with @babel/plugin-transform-runtime@^7.19.6 isn't supported by any available resolver
➤ YN0000: │ Resolving @compodoc/compodoc@^1.1.19 errored with @compodoc/compodoc@^1.1.19 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/dat.gui@^0.7.7 errored with @types/dat.gui@^0.7.7 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/three@^0.147.1 errored with @types/three@^0.147.1 isn't supported by any available resolver
➤ YN0000: │ Resolving esbuild-loader@^2.21.0 errored with esbuild-loader@^2.21.0 isn't supported by any available resolver
➤ YN0000: │ Resolving jest@^29.4.1 errored with jest@^29.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving ts-jest@~29.0.5 errored with ts-jest@~29.0.5 isn't supported by any available resolver
➤ YN0000: │ Resolving typescript@4.9.4 errored with typescript@4.9.4 isn't supported by any available resolver
➤ YN0000: │ Resolving webpack@^5.75.0 errored with webpack@^5.75.0 isn't supported by any available resolver
➤ YN0000: │ Resolving webpack-cli@^5.0.1 errored with webpack-cli@^5.0.1 isn't supported by any available resolver
➤ YN0000: └ Completed in 0s 251ms
➤ YN0000: ⠙ ====================------------------------------------------------------------
➤ YN0000: ┌ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/package.json
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/jest-global-mocks.ts:1:1: Undeclared dependency on @jest/globals
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/jest.config.js:28:5: Strings should avoid referencing the node_modules directory (prefer require.resolve)
➤ YN0000: │ Resolving @angular/animations@^15.1.2 errored with @angular/animations@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/cdk@^15.1.2 errored with @angular/cdk@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/common@^15.1.2 errored with @angular/common@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/compiler@^15.1.2 errored with @angular/compiler@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/core@^15.1.2 errored with @angular/core@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/forms@^15.1.2 errored with @angular/forms@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/material@^15.1.2 errored with @angular/material@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/platform-browser@^15.1.2 errored with @angular/platform-browser@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/platform-browser-dynamic@^15.1.2 errored with @angular/platform-browser-dynamic@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/router@^15.1.2 errored with @angular/router@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @rp3e11/ngx-slider@^13.0.1 errored with @rp3e11/ngx-slider@^13.0.1 isn't supported by any available resolver
➤ YN0000: │ Resolving css-element-queries@^1.2.3 errored with css-element-queries@^1.2.3 isn't supported by any available resolver
➤ YN0000: │ Resolving cypress-plugin-snapshots@^1.4.4 errored with cypress-plugin-snapshots@^1.4.4 isn't supported by any available resolver
➤ YN0000: │ Resolving qrcode@1.5.1 errored with qrcode@1.5.1 isn't supported by any available resolver
➤ YN0000: │ Resolving rxjs@^7.8.0 errored with rxjs@^7.8.0 isn't supported by any available resolver
➤ YN0000: │ Resolving three@^0.148.0 errored with three@^0.148.0 isn't supported by any available resolver
➤ YN0000: │ Resolving tslib@^2.5.0 errored with tslib@^2.5.0 isn't supported by any available resolver
➤ YN0000: │ Resolving typescript@4.9.4 errored with typescript@4.9.4 isn't supported by any available resolver
➤ YN0000: │ Resolving zone.js@^0.12.0 errored with zone.js@^0.12.0 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular-devkit/build-angular@^15.1.3 errored with @angular-devkit/build-angular@^15.1.3 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular-devkit/build-ng-packagr@~0.1002.4 errored with @angular-devkit/build-ng-packagr@~0.1002.4 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/cli@~15.1.3 errored with @angular/cli@~15.1.3 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/compiler-cli@~15.1.2 errored with @angular/compiler-cli@~15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/language-service@^15.1.2 errored with @angular/language-service@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/cypress@^1.1.3 errored with @types/cypress@^1.1.3 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/qrcode@^1.5.0 errored with @types/qrcode@^1.5.0 isn't supported by any available resolver
➤ YN0000: │ Resolving concurrently@^7.6.0 errored with concurrently@^7.6.0 isn't supported by any available resolver
➤ YN0000: │ Resolving cypress@^12.4.0 errored with cypress@^12.4.0 isn't supported by any available resolver
➤ YN0000: │ Resolving jest@^29.4.1 errored with jest@^29.4.1 isn't supported by any available resolver
➤ YN0000: │ Resolving jest-preset-angular@^12.2.6 errored with jest-preset-angular@^12.2.6 isn't supported by any available resolver
➤ YN0000: │ Resolving ng-packagr@^15.1.1 errored with ng-packagr@^15.1.1 isn't supported by any available resolver
➤ YN0000: └ Completed
➤ YN0000: ⠹ ========================================----------------------------------------
➤ YN0000: ┌ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/projects/phoenix-ui-components/package.json
➤ YN0000: │ User scripts prefixed with "pre" or "post" (like "prepublishOnly") will not be called in sequence anymore; prefer calling prologues and epilogues explicitly
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/projects/phoenix-ui-components/lib/components/phoenix-ui.module.ts:3:1: Undeclared dependency on @angular/router
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/projects/phoenix-ui-components/lib/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.ts:7:1: Undeclared dependency on jszip
➤ YN0000: │ /Users/emoyse/LocalDocuments/phoenix/packages/phoenix-ng/projects/phoenix-ui-components/lib/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.test.ts:1:1: Undeclared dependency on jszip
➤ YN0000: │ Resolving @angular/animations@^15.1.2 errored with @angular/animations@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/cdk@^15.1.2 errored with @angular/cdk@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/forms@^15.1.2 errored with @angular/forms@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/material@^15.1.2 errored with @angular/material@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @angular/platform-browser@^15.1.2 errored with @angular/platform-browser@^15.1.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @rp3e11/ngx-slider@^13.0.1 errored with @rp3e11/ngx-slider@^13.0.1 isn't supported by any available resolver
➤ YN0000: │ Resolving css-element-queries@^1.2.3 errored with css-element-queries@^1.2.3 isn't supported by any available resolver
➤ YN0000: │ Resolving qrcode@1.5.1 errored with qrcode@1.5.1 isn't supported by any available resolver
➤ YN0000: │ Resolving rxjs@^7.8.0 errored with rxjs@^7.8.0 isn't supported by any available resolver
➤ YN0000: │ Resolving three@^0.148.0 errored with three@^0.148.0 isn't supported by any available resolver
➤ YN0000: │ Resolving tslib@^2.5.0 errored with tslib@^2.5.0 isn't supported by any available resolver
➤ YN0000: │ Resolving node-fetch@^3.3.0 errored with node-fetch@^3.3.0 isn't supported by any available resolver
➤ YN0000: └ Completed
➤ YN0000: ⠸ ============================================================--------------------
➤ YN0000: Failed with errors in 1s 640ms
We moved to yarn 2.0 by now
Running on my macOS M1 laptop with the following:
I see many warnings:
I think, from reading around, these might be related to bugs in yarn (or at least, deficiencies). So probably we should 'just' update to yarn 2.0. This ticket can be used to track issues / the discussion.