#Build on Vercel fails but works locally

4 messages · Page 1 of 1 (latest)

fading abyss
#

Dear all

I'm getting build error on vercel and not locally. Some packages are missing while building on the server:

...
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
- info Creating an optimized production build...
Failed to compile.
./src/lib/components/modal-mapping.tsx
Module not found: Can't resolve '@hookForm/resolvers/zod'
https://nextjs.org/docs/messages/module-not-found
....
```
You can find here attach my build log and my package.json.

This is driving me crazy as it is a simple project that is building and running just fine locally.
wooden hearthBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
silent umbra
#

you probably meant to import from @hookform/resolvers instead of @hookForm/resolvers (see the error message)

fading abyss
#

Thanks @silent umbra ! It was the problem... Oh boy... What a painfull one to find... 😦