We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4827be4 commit 7a489cfCopy full SHA for 7a489cf
src/utils/packages.ts
@@ -5,7 +5,8 @@ export async function ensureDependencies(): Promise<boolean> {
5
}
6
7
const zodMajorVersion = await getPackageMajorVersion('zod')
8
- if (!zodMajorVersion || zodMajorVersion < 4) {
+ // Sometimes there is a weird issue with getting zod version, so we just ignore it
9
+ if (zodMajorVersion && zodMajorVersion < 4) {
10
console.error('nuxt-auto-form requires "zod" version >= 4 and found', zodMajorVersion)
11
return false
12
0 commit comments