matrix-org / matrix-org/thirdroom

Installation fails with Yarn 3.2.3 on `<...>olm-3.2.8.tgz%23 isn't supported by any available resolver`

Open
#375 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
647
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I was following instuctions provided for [local development](https://github.com/matrix-org/thirdroom#local-development), and got a failing installation.

```
$ yarn
➤ YN0000: ┌ Resolution step
➤ YN0013: │ 3d-tiles-renderer@https://github.com/matrix-org/3DTilesRendererJS.git#commit=0a24d695752f6e419d47cca0bbec0e8ba8f0af4c can't be found in th
➤ YN0061: │ @types/gl-matrix@npm:3.2.0 is deprecated: This is a stub types definition. gl-matrix provides its own type definitions, so you do not need this installed.
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ source-map-resolve@npm:0.6.0 is deprecated: See https://github.com/lydell/source-map-resolve#deprecated
➤ YN0061: │ @types/browserslist@npm:4.15.0 is deprecated: This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.
➤ YN0061: │ core-js@npm:3.21.1 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
➤ YN0061: │ core-js-pure@npm:3.21.1 is deprecated: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
➤ YN0061: │ react-style-singleton@npm:2.2.0 is deprecated: wrong managing of dynamic styles
➤ YN0061: │ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.4.0 is deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
➤ YN0001: │ Error: @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.8.tgz: @matrix-org/olm@npm:3.2.8::__archiveUrl=https%3A%2F%2Fgitlab.matrix.org%2Fapi%2Fv4%2Fprojects%2F27%2Fpackages%2Fnpm%2F%40matrix-org%2Folm%2F-%2F%40matrix-org%2Folm-3.2.8.tgz%23 isn't supported by any available resolver
at Bd.getResolverByDescriptor (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1664)
at Bd.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1252)
at LR.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:435:3387)
at Bd.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1281)
at /home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:439:7764
at Tg (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:390:11154)
at ce (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:439:7744)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
➤ YN0000: └ Completed in 42s 129ms
➤ YN0000: Failed with errors in 42s 138ms
```

**To Reproduce**
Steps to reproduce the behavior:
1. Install `yarn` and clone repo.
2. Run `yarn`.
3. Few downloading dependencies after, process stops with an error: `➤ YN0001: │ Error: @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.8.tgz: @matrix-org/olm@npm:3.2.8::__archiveUrl=https%3A%2F%2Fgitlab.matrix.org%2Fapi%2Fv4%2Fprojects%2F27%2Fpackages%2Fnpm%2F%40matrix-org%2Folm%2F-%2F%40matrix-org%2Folm-3.2.8.tgz%23 isn't supported by any available resolver`

**Expected behavior**
Error-less installation that would allow me to serve the app on localhost.

**Screenshots**
![Screenshot of the terminal](https://user-images.githubusercontent.com/5708819/193012381-5bc31fac-2e2a-47a8-b65c-4c39ef328042.png)

**Desktop:**
- Manjaro Linux, v22.0.0
- Yarn v3.2.3
- Node v16.16.0
- Main branch, b969fe8c531efc4746efb36549cd69b2bb50c3f1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository's local development instructions and reproduce the failure using Yarn 3.2.3 and Node 16.16.0. Investigate how the @matrix-org/olm dependency is resolved, then verify that installation completes and the app can be served on localhost without the reported resolver error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.