ERROR: Could not find the version of the CLI
jkonowitch opened this issue ยท 5 comments
jkonowitch commented
It appears the CLI is looking at the version of my application package (which is in a monorepo, using pnpm workspaces, and is not versioned) rather than the version of kysely-ctl
.
ERROR Could not find the version of the CLI
at getCLIInstalledVersion (/PROJECT/node_modules/.pnpm/kysely-ctl@0.4.0_c12@1.10.0_citty@0.1.6_consola@3.2.3_kysely@0.27.3_nypm@0.3.8_pathe@1.1.2_pk_2dkvxtov55pjiwaee5hspcr3bm/node_modules/kysely-ctl/dist/bin.js:77:11)
igalklebanov commented
Hey ๐
Try using --no-outdated-check
flag for now. Will be fixed ASAP.
jkonowitch commented
Ok! I just tried locally, and adding const { version } = await readPackageJSON(undefined, { startingFrom: import.meta.dirname})
; fixed the issue
kysely-ctl/src/utils/version.mts
Line 15 in bf7d994
jkonowitch commented
HA! You actually already fixed it in main
๐
igalklebanov commented
Yeah that should be the direction.
Just released 0.4.1, hope it fixes this. If not, I'd love a small reproduction repository.
jkonowitch commented
Yes, that fixed it ๐