Closed valiukasd closed 1 year ago
Update: Same issue occurs when deploying to netlify
Same here too - have you managed to find a fix? I tried with 3.12 branch, but then think the stable release was 3.11 from their releases page, but both have the same error. It actually builds fine on my local machine.
17:46:55.046 | Error: Command "npm run build" exited with 1
17:46:55.164 | BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1
As per this discussion, https://github.com/saleor/saleor-dashboard/discussions/3188
Adding Environment variable to Vercel SKIP_SOURCEMAPS = true works for me.
you are right @amityweb the problem is inside vite.config.js
However, all compilation files are being generated in "build/dashboard" and the vercel platform at deploy time is accusing that there is no "dist" folder, so if it still doesn't work even changing SKIP_SOURCEMPS to "true" value, change all "build/dashboard" files declarations to "dist" or do the opposite, set to look for "build/dashboard" :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description of the issue
I cannot deploy to Vercel due to an error. I think that I have it setup correctly, but correct me if I am wrong. …
Steps to reproduce the problem
Expected Result
Deployment is succesful …
Actual Result
Build Failed Command "npm run build" exited with 1 …
Screenshots
Console output
System information
Dashboard version:
v3.12.1