Angular-cli: ng serve hanging on "92% additional asset processing scripts-webpack-plugin"

Created on 14 Jan 2020  路  3Comments  路  Source: angular/angular-cli

馃悶 bug report

Affected Package

Problem trying to run ng serve with Angular: 9.0.0-rc.7 (presumably webpack under the hood).

Is this a regression?

Not sure. Similar complaints have been made in the past, but no clear solution is obvious. Isn't this just a matter of copying over scripts from the specified file path to the web-app's output dir?!

Description

I'm trying to add scripts for lightgallery.js to my angular app. After running npm i -S lightgallery.js I have the following in both test and build architects in angular.json:

            "scripts": [
              "./node_modules/lightgallery.js/dist/js/lightgallery.min.js",
              "./node_modules/lightgallery.js/dist/js/lg-thumbnail.min.js",
              "./node_modules/lightgallery.js/dist/js/lg-fullscreen.min.js"
            ]

馃敩 Minimal Reproduction

Checkout this branch https://github.com/MagnusBrzenk/skymont/tree/001-basic and try npm i followed by ng serve.

馃實 Your Environment

Angular Version:



Angular CLI: 9.0.0-rc.7
Node: 10.16.3
OS: darwin x64

Angular: 9.0.0-rc.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.7
@angular-devkit/build-angular     0.900.0-rc.7
@angular-devkit/build-optimizer   0.900.0-rc.7
@angular-devkit/build-webpack     0.900.0-rc.7
@angular-devkit/core              9.0.0-rc.7
@angular-devkit/schematics        9.0.0-rc.7
@angular/cdk                      8.2.3
@angular/material                 8.2.3
@angular/pwa                      0.803.21
@ngtools/webpack                  9.0.0-rc.7
@schematics/angular               9.0.0-rc.7
@schematics/update                0.900.0-rc.7
rxjs                              6.5.4
typescript                        3.6.4
webpack                           4.41.2

devkibuild-angular high broken bufix

Most helpful comment

We should emit an actionable error.

All 3 comments

Hi, the problem seems to be that you are trying to copy files which don't exist. lightgallery.js doesn't contain lg-fullscreen.min.js and lg-thumbnail.min.js.

We should emit an actionable error.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings