rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[lockfile-explorer] Error: The current lockfile version is not supported

Open kaiyoma opened this issue 1 year ago • 6 comments

Summary

Lockfile explorer crashes on startup.

Repro steps

Just install and run, as per the instructions.

Details

Rush Lockfile Explorer 1.7.16 - https://lfx.rushstack.io/

Found a Rush workspace:  C:\Users\kgetz\Work\event-viewer\rush.json
App launched on http://localhost:8091
C:\Users\kgetz\AppData\Roaming\nvm\v20.11.1\node_modules\@rushstack\lockfile-explorer\lib\utils\shrinkwrap.js:65
        throw new Error('The current lockfile version is not supported.');
              ^

Error: The current lockfile version is not supported.
    at getShrinkwrapFileMajorVersion (C:\Users\kgetz\AppData\Roaming\nvm\v20.11.1\node_modules\@rushstack\lockfile-explorer\lib\utils\shrinkwrap.js:65:15)
    at C:\Users\kgetz\AppData\Roaming\nvm\v20.11.1\node_modules\@rushstack\lockfile-explorer\lib\cli\explorer\ExplorerCommandLineParser.js:109:95

Node.js v20.11.1

Our Rush monorepo lockfile is version 9.0 (pnpm 9.14.3).

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@rushstack/lockfile-explorer version? 1.7.16
Operating system? Windows 11
Would you consider contributing a PR? No
Node.js version (node -v)? 20.11.1

kaiyoma avatar Feb 04 '25 19:02 kaiyoma

@fzxen, @L-Qun - can you take a look at this?

CC @octogonz

iclanton avatar Feb 05 '25 19:02 iclanton

Some work is needed to support pnpm v9 in @rushstack/lockfile-explorer. I will take a look this weekend.

fzxen avatar Feb 18 '25 08:02 fzxen

@fzxen FYI pnpm is now up to version 10. 😄

kaiyoma avatar Feb 18 '25 16:02 kaiyoma

@fzxen FYI pnpm is now up to version 10. 😄

Pnpmv10 did not upgrade the lockfile version, still using lockfileV9. This may mean it will be easier to upgrade from pnpmvV9 to pnpmV10.

fzxen avatar Feb 20 '25 12:02 fzxen

+1 on this

Running version 1.7.36:

App launched on http://localhost:8091
/Users/ghaiklor/.projects/unio/common/temp/install-run/@[email protected]/node_modules/@rushstack/lockfile-explorer/lib/utils/shrinkwrap.js:76
        throw new Error('The current lockfile version is not supported.');
              ^

Error: The current lockfile version is not supported.
    at getShrinkwrapFileMajorVersion (/Users/ghaiklor/.projects/unio/common/temp/install-run/@[email protected]/node_modules/@rushstack/lockfile-explorer/lib/utils/shrinkwrap.js:76:15)
    at /Users/ghaiklor/.projects/unio/common/temp/install-run/@[email protected]/node_modules/@rushstack/lockfile-explorer/lib/cli/explorer/ExplorerCommandLineParser.js:109:95

Node.js v20.19.1

ghaiklor avatar May 30 '25 09:05 ghaiklor

up ☝🏻

Silon avatar Jul 21 '25 10:07 Silon