Error Can't Find Module src/index.js


├── dist
│ ├── api
│ │ ├── creators.d.ts
│ │ ├── creators.js
│ │ ├── movie.d.ts
│ │ ├── movie.js
│ │ ├── person.d.ts
│ │ ├── person.js
│ │ ├── search.d.ts
│ │ ├── search.js
│ │ ├── stars.d.ts
│ │ └── stars.js
│ ├── config
│ │ ├── dbconnect.d.ts
│ │ └── dbconnect.js
│ ├── model
│ │ ├── creator.d.ts
│ │ ├── creator.js
│ │ ├── movie.d.ts
│ │ ├── movie.js
│ │ ├── person.d.ts
│ │ ├── person.js
│ │ ├── star.d.ts
│ │ └── star.js
│ ├── app.d.ts
│ ├── app.js
│ ├── index.d.ts
│ └── index.js
├── src
│ ├── api
│ │ ├── creators.ts
│ │ ├── movie.ts
│ │ ├── person.ts
│ │ ├── search.ts
│ │ └── stars.ts
│ ├── config
│ │ └── dbconnect.ts
│ ├── middleware
│ ├── model
│ │ ├── creator.ts
│ │ ├── movie.ts
│ │ ├── person.ts
│ │ └── star.ts
│ ├── app.ts
│ └── index.ts
├── .env
├── .gitignore
├── package-lock.json
├── package.json
├── tsconfig.json
└── vercel.json

Your output agrees that there is no /index.js file in the root directory of your repository.

how i can fix it i edit run command but still no work

You have an index.ts. Did you mean to start your server using that instead?

That is an accurate detail to point out, however, the index.ts file is also not in the root directory of the repository.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.