[lockfile-explorer] Error: The current lockfile version is not supported
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 |
@fzxen, @L-Qun - can you take a look at this?
CC @octogonz
Some work is needed to support pnpm v9 in @rushstack/lockfile-explorer. I will take a look this weekend.
@fzxen FYI pnpm is now up to version 10. 😄
@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.
+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
up ☝🏻