aravindballa / gatsby-theme-andy

A Gatsby theme to build Andy style websites. 📑
343 stars 46 forks source link

Error: gatsby tried to access @babel/types, but it isn't declared in its dependencies; #22

Closed larry-llama closed 4 years ago

larry-llama commented 4 years ago

When I run yarn start or yarn develop I get this error.

I have tried this using adding the start script descriped in the video. I have also tried using the develop script described in the other documentation.

Error: gatsby tried to access @babel/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. I can see that it is defined in the dependancies of package.json. I've attached the full terminal output.

terminal output - gatsby theme andy error.txt

larry-llama commented 4 years ago

So I'm totally new to Gatsby and Node.js. The reason this happened in that I had Capitals in the app name. It was called "Digital_Garden". Calling it "digital-garden" resolved the issue.