ecommerce_sanity_stripe icon indicating copy to clipboard operation
ecommerce_sanity_stripe copied to clipboard

Problems with deployment

Open Mhmd7770777 opened this issue 2 years ago • 2 comments

Screenshot (101) Screenshot (102) Screenshot (103)

for some reasons i cant deploy my app on vercel, something about incorrect peer dependencies i guess.I can provide other screenshots of my code or of the error if needed.i tried everything and it is still not working.

Also,something is wrong as an error show warning " > [email protected]" has incorrect peer dependency "@sanity/client@^2.11.0".

but in the code you can see that my @sanity/client is ^3.2.0 not 2.11.0, and i dont know the reason for that.

or maybe the problem is

./components/index.js
00:00:45.671 | Module not found: Can't resolve './Product' in '/vercel/path0/components'
00:00:45.672 |  
00:00:45.672 | Import trace for requested module:
00:00:45.672 | ./pages/_app.js
00:00:45.672 |  
00:00:45.672 | ./pages/_app.js
00:00:45.672 | Module not found: Can't resolve '../context/StateContext' in '/vercel/path0/pages'
00:00:45.672 |  
00:00:45.672 | ./pages/product/[slug].js
00:00:45.672 | Module not found: Can't resolve '../../context/StateContext' in '/vercel/path0/pages/product'

where vercel cant resolve statecontext and other things for some reasons

please help

Mhmd7770777 avatar Jun 04 '22 21:06 Mhmd7770777

image I am getting the Same problem

DevPrograme avatar Nov 24 '22 13:11 DevPrograme

Try doing the npm install --legacy-peer-deps within the Vercel project deploy page.

When deploying your project, go to the "build and output" settings, and in the npm command input write, npm install --legacy-peer-deps.

Select the override radio button, then try deploying.

umituysal avatar Dec 02 '22 17:12 umituysal