Yarn Doesn’t Start Development Server

Asked

Viewed 310 times

-1

Hi, I’m developing a site with React, but when using give command yarn start, he doesn’t incite my server.

print do CMDER com com o comando yarn start

  • made a yarn run build before? no error, are you sure the code is in that folder for Yarn to start correctly? it seems to me that you have nothing to start....

  • I did, and this is the root folder of my project.

  • Do not post code as image code should be published as text. Reference

1 answer

0

Checks that your file folder is normally set to index. Then, package.json file is probably correct because it called the $ react-scrips start. So try to delete node_modules, Yarn.lock and package-lock.json and then reinstall your packages again.

  • I did, but I still have the same problem!

  • If you start a new project with npx create-react-app project-name and try to use the yarn start it works?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.