I have an application using truffle and webpack.
When I run npm run server ( server's definition in package.json is : "server": "concurrently 'webpack --mode development --watch' 'wait-on build/backend.js && nodemon --watch build build/backend.js'",)
The application fails at the following line:
1] [nodemon] starting `node build/backend.js`
[1] /Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:1652
[1] var personal = new web3_eth_personal__WEBPACK_IMPORTED_MODULE_0___default.a(RPC);
[1] ^
[1]
[1] TypeError: web3_eth_personal__WEBPACK_IMPORTED_MODULE_0___default.a is not a constructor
[1] at Module../src/interfaces/contracts/utils.js (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:1652:16)
[1] at __webpack_require__ (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:20:30)
[1] at Module../src/models/user.js (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:2184:85)
[1] at __webpack_require__ (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:20:30)
[1] at Module../src/config/passport.js (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:199:70)
[1] at __webpack_require__ (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:20:30)
[1] at Module../src/index.js (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:1282:74)
[1] at __webpack_require__ (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:20:30)
[1] at Object.0 (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:3523:18)
[1] at __webpack_require__ (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:20:30)
[1] at /Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:84:18
[1] at Object.<anonymous> (/Users/samueldare/Documents/Code/SourceTree/Wells/backend/build/backend.js:87:10)
[1] at Module._compile (internal/modules/cjs/loader.js:721:30)
[1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
[1] at Module.load (internal/modules/cjs/loader.js:620:32)
[1] at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
[1] [nodemon] app crashed - waiting for file changes before starting...
I would appreciate any guidance on this