2

I tried to put my GitHub repo into Vercel but while building it failed.

enter image description here

This is a custom component created by me.

And my package.json looks like the below.

{
  "name": "learn-starter",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "@material-ui/core": "^4.12.3",
    "@material-ui/icons": "4.11.2",
    "@zeit/next-sass": "^1.0.1",
    "next": "^11.0.0",
    "node-sass": "^4.14.1",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  }
}

Can someone help me with what is wrong?

Mari Selvan
  • 3,598
  • 3
  • 21
  • 36
  • Does this answer your question? [How to fix Next.js Vercel deployment module not found error](https://stackoverflow.com/questions/62378045/how-to-fix-next-js-vercel-deployment-module-not-found-error) – juliomalves Aug 13 '21 at 17:02

1 Answers1

0

The problem is Git. It somehow fetches index.js as Index.js. So, I just reverted and change into index.js and push it again. This solves my issue.

Mari Selvan
  • 3,598
  • 3
  • 21
  • 36