model-viewer icon indicating copy to clipboard operation
model-viewer copied to clipboard

npmjs peerDependency for three is stuck at 0.172.0

Open otri opened this issue 4 months ago • 0 comments

It seems that npmjs is serving @google/model-viewer with peerDependencies: { "three": "^0.172.0" } npmjs @google/model-viewer

Started a fresh project using pnpm with "@google/model-viewer": "4.1.0":

And digging into node_modules/@google/model-viewer/package.json I see:

  "peerDependencies": {
    "three": "^0.172.0"
  },

Instead of what's in version control: model-viewer/package.json

  "peerDependencies": {
    "three": "^0.174.0"
  },

This means when using three.js in my own project, I want to avoid duplicate slightly different versions, I have to use the older 0.172.0 release. Weird.

otri avatar Aug 18 '25 08:08 otri