So, I am writing an application with the node/express + jade combo.
I have client.js, which is loaded on the client. In that file I have code that calls
client.js
Replace all require statements to import statements. Example:
//BEFORE: const Web3 = require('web3'); //AFTER: import Web3 from 'web3';
Worked for me.