Angular: Error in system modules

0

Hello! My application stopped compiling, giving problems in general purpose modules. The crypto module was the first error that appeared, so I looked for a solution to this error.

ThesolutionIfoundaltersthewebpack-configbrowser.jsfile.Thecryptoerrorhasdisappearedbutseveralerrorscontinuetoappear:

WouldthisbeaWebpackbug?Ididnotinstallwebpackintheapplication,Ibelieveitwasinstalledtogetherwiththeangle/cli.

TheversionsI'musing:

    
asked by anonymous 07.08.2018 / 02:49

1 answer

0

Solved! The webpack of angular / cli has been configured for an earlier version of angular / cli 6.0

Modified file: browser.js

Before:

node: false;

Modification:

node: {
          fs: 'empty',
          global: true,
          crypto: true,
          tls: 'empty',
          dns: 'empty',
          net: 'empty',
          process: true,
          module: 'empty',
          clearImmediate: false,
          setImmediate: false
        },

Path: node_modules / @ angular-devkit / angular build / src / angular-cli-files / models / webpack-configs

    
07.08.2018 / 21:38