Click here to Skip to main content
15,358,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While trying to deploy my nextjs project on vercel, I keep getting two major errors. And I don't even know where to start my debugging from. But when I run yarn build on my local computer, it build my project without any error

These are the errors I get when trying to deploy on vercel

Error 1

Error: Can't resolve './cradleLoader.css' in '/vercel/path0/node_modules/react-loader-spinner/dist/loader/css'


Error 2
Build error occurred
Error: > Build failed because of webpack errors
    at /vercel/path0/node_modules/next/dist/build/index.js:397:19
    at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:60:20)
    at async Object.build [as default] (/vercel/path0/node_modules/next/dist/build/index.js:77:25)
error Command failed with exit code 1.


What I have tried:

I don't even know where to start my debugging from
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900