Vercel deployment with sanity: Cannot find module 'sanity' or its corresponding type declarations. #44451
Answered
by
simon-bonnedahl
simon-bonnedahl
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
simon-bonnedahl
Jan 15, 2023
Replies: 2 comments 3 replies
-
Found a solution which was to make a .vercelignore file and add "sanity" in there to ignore the whole folder. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
simon-bonnedahl
-
Add a prebuild script to your package.json file:
Confirm it is working locally with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a solution which was to make a .vercelignore file and add "sanity" in there to ignore the whole folder.