Skip to content

How to custom node in @angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js #19229

@MrHOY

Description

@MrHOY

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

When I use "@angular-devkit/build-angular": "~0.901.12" my project work well.
But when I upgrade "@angular-devkit/build-angular": "~0.1001.1" my project not run with many errors below:
image

I try to find out what different and I know the problem

@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js
node: false

I need to set node: {crypto: true, stream: true}, then my project work well

Of course, I can do manually, but that is unprofessional and will be difficult for other programmers
I want to ask have any way to custom node like that automatically ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions