Open hyunbinseo opened 6 months ago
it might not be in dependencies in package.json, but still be in node modules, I suppose if you delete node modules and install again - it should work just fine
Finally found a reproduction:
pnpm -v # 9.1.0
pnpm i drizzle-orm @libsql/client -D
# devDependencies:
# + @libsql/client 0.6.0
# + drizzle-orm 0.30.10
pnpm rm @libsql/client
# devDependencies:
# - @libsql/client 0.6.0
rm -rf node_modules
pnpm i --force
# devDependencies:
# + drizzle-orm 0.30.10
The node_modules/.pnpm/@libsql+client@0.6.0
directory persists.
# pnpm-lock.yaml
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
drizzle-orm:
specifier: ^0.30.10
version: 0.30.10(@libsql/client@0.6.0)
packages:
'@libsql/client@0.6.0':
resolution: {integrity: sha512-qhQzTG/y2IEVbL3+9PULDvlQFWJ/RnjFXECr/Nc3nRngGiiMysDaOV5VUzYk7DulUX98EA4wi+z3FspKrUplUA==}
The workaround is to:
drizzle-orm
dependencynode_modules
and reinstall dependenciespnpm rm drizzle-orm
pnpm i drizzle-orm -D
# Update pnpm lockfile
# pnpm-lock.yaml
importers:
.:
devDependencies:
drizzle-orm:
specifier: ^0.30.10
version: 0.30.10
rm -rf node_modules
pnpm i --force
For pnpm monorepo,
drizzle-orm
dependency from the nested directorynode_modules
and reinstall dependencies recursively
According to the
v0.21.0
release note:There seems to be a resolution error with the
pnpm
package manager.Even in a workspace where
@libsql/client
is not installed as a (dev) dependency,The
drizzle-kit
commands (e.g.migrate
,studio
) finds it and uses it instead.Ability to specify the
better-sqlite3
driver is no longer available.