Skip to content

Cannot find module '@angular/cli/plugins/webpack' #10994

@joshuaballas

Description

@joshuaballas

Versions

Angular CLI: 6.0.3
Node: 8.9.4
OS: win32 x64
Angular: 6.0.3

@angular-devkit/architect    0.6.3
@angular-devkit/core         0.6.3
@angular-devkit/schematics   0.6.3
@schematics/angular          0.6.3
@schematics/update           0.6.3
rxjs                         6.2.0
typescript                   2.7.2
webpack                      3.10.0

I have an Electron app using Angular 6 (just upgraded) and upon trying to run the app, I got this error: 'Cannot find module '@angular/cli/plugins/webpack''. I looked in the node_modules folder and found where the webpack file used to exist, but now it is gone. What is the solution to this?

NOTE: The angular app was ejected, hence why I am using Webpack.

I still need reference to these 2 imports in webpack: NamedLazyChunksWebpackPlugin,
BaseHrefWebpackPlugin

UPDATE: Also ngtools/webpack is missing too. I see there is a npm library for it, but not sure if it will work since webpack has been removed from the cli folder.

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