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?

1

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Okay la thugappa

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.