manosim / react-giphy

A React component displaying awesome gifs from Giphy.com.
http://manosim.github.io/react-giphy
10 stars 3 forks source link

cannot resolve module 'superagent' #5

Open brec-c opened 8 years ago

brec-c commented 8 years ago

here's the error:

Error in ./~/react-giphy/index.js Module not found: Error: Cannot resolve module 'superagent' in /Users/redacted/node_modules/react-giphy @ ./~/react-giphy/index.js 2:14-35

If this is a dependency then I'm not sure why it wasn't installed by NPM.

jharmn commented 8 years ago

+1

./~/react-giphy/index.js
Module not found: Error: Cannot resolve module 'superagent' in /~/src/my_project/node_modules/react-giphy

This was in a ES6/ES2015 project with Babel/Webpack (based on https://github.com/alicoding/react-webpack-babel)

fred-sohnis commented 7 years ago

I resolved the same issue by running command:

npm install superagent in the project repository