antfu-collective / taze

🥦 A modern cli tool that keeps your deps fresh
MIT License
2.66k stars 86 forks source link

taze fails with "TypeError: currentVersion.startsWith is not a function" when package.json "overrides" dependency version #96

Closed FjellOverflow closed 8 months ago

FjellOverflow commented 9 months ago

Describe the bug

When using overrides in package.json taze always fails with TypeError: currentVersion.startsWith is not a function.

{
   // ...
  "overrides": {
    "vue3-perfect-scrollbar": {
      "postcss-import": "13.0.0"
    }
  }
}

Reproduction

In description

System Info

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1335U
    Memory: 21.07 GB / 31.03 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
Binaries:
    Node: 20.6.0 - ~/.nvm/versions/node/v20.6.0/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v20.6.0/bin/npm

Used Package Manager

npm

Validations

antfu commented 8 months ago

Should be fixed

FjellOverflow commented 8 months ago

Problem persists for me with v0.13.1.

mcailleauxgreenskin commented 7 months ago

Problem persists for me with v0.13.2.