Angular: Error in system modules

Asked

Viewed 169 times

1

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

inserir a descrição da imagem aqui

The solution I found changes the webpack-config browser.js file. Crypto error is gone but several errors keep popping up:

inserir a descrição da imagem aqui

Would this be an error in Webpack? I did not install webpack in the application, I believe it was installed together with angular/cli.

The versions I’m using:

inserir a descrição da imagem aqui

  • Face to start has no way you use the webpack and angular-cli in the same project.... Even because angularcli already has an embedded webpack. Your problem was created using exactly what?

  • The webpack is the embedded one so, because I didn’t manually install the webpack. The error came up all of a sudden. It appeared that a module would get depreciated, but I thought it was just a recommendation, and suddenly it got like this, full of mistakes.

1 answer

0

Solved! The angular/cli webpack 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/build-angular/src/angular-cli-files/models/webpack-configs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.