I'm trying to connect my react app to a smart contract running on testrpc. But when I put
import Web3 from 'web3'
into the App.js file and save, the app running on localhost in my browser gives me the error:
Error in /Users/my_username/~/web3/lib/web3.js
Module not found: 'json' in /Users/my_username/node_modules/web3/lib
@ /Users/my_username/~/web3/lib/web3.js 37:14-39
Also I have
in my package.json dependencies. I can't figure out what's wrong for the life of me.