'Could not find a required file. Name: index.js react with firebase

ı am developing react app, ı want to deploy it with firebase . after ı write npm run build ı take this error. bu ı have index.js in src ı don't know why ı take this error.

➜  amazon-clone  npm run build

> [email protected] build
> react-scripts build

Could not find a required file.
  Name: index.js




Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source