Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Fetching Data with the Fetch API

jessica killeen
jessica killeen
4,549 Points

Failed to compile after initial install - any suggestions?

Hi there!

I downloaded the project files. Guil says to run npm install on the gif-search folder. There are several of these, but I installed on:

1-fetching-data-with-react-fetch-api/gif-search

I cannot compile when I run 'npm start' from file location.

Here is my terminal error message: Failed to compile.

Error in ./src/index.js Module build failed: Error: Failed to load plugin flowtype: Cannot find module 'eslint-plugin-flowtype' Referenced from: /Users/macuser/Documents/tree house/data-fetching-react/1-fetching-data-with-fetch-api/gif-search/node_modules/react-scripts/.eslintrc at Array.forEach (native) at Array.reduceRight (native) @ multi main

Here is my localhost: 3000 error message: Failed to compile.

Error in ./src/index.js Module build failed: Error: Failed to load plugin flowtype: Cannot find module 'eslint-plugin-flowtype' Referenced from: /Users/macuser/Documents/tree house/data-fetching-react/1-fetching-data-with-fetch-api/gif-search/node_modules/react-scripts/.eslintrc at Array.forEach (native) at Array.reduceRight (native) @ multi main

Can someone suggest a fix for this? Something to install, or some file content to change?

Thanks a lot! I'm excited to get started on this project