I’m following along the tutorial. Anyone have a clue on this error? Google’d the error but didn’t find answers… tried npm install crypto…
cbdev@Precision-5520 ~/SecureCoop_app/SecureCoop
$ ionic cordova build android
√ Creating .\www directory for you in 6.30ms
> ng.cmd run app:ionic-cordova-build --platform=android
- Generating browser application bundles (phase: setup)...An unhandled exception occurred: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.node has an unknown property 'crypto'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
See "C:\cygwin64\tmp\ng-cYXPM4\angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 127.
Re-running this command with the --verbose flag may provide more information.
cbdev@Precision-5520 ~/SecureCoop_app/SecureCoop
$
webpack.config.js
module.exports = {
node: {
crypto: true
}
};