import contract from "truffle-contract";
However, when I load my webpage in the browser, I see the following console error:
vendor.js:61 Uncaught Error: Cannot find module 'debug' from 'truffle-contract/lib/contract.js'
I've already installed
truffle-contract with yarn at version ^4.0.2. I'm using Truffle version v5.0.1 . Why is contract.js missing?