Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng serve hanging on "92% additional asset processing scripts-webpack-plugin" #16659

Closed
MagnusBrzenk opened this issue Jan 14, 2020 · 3 comments · Fixed by #16666
Closed

ng serve hanging on "92% additional asset processing scripts-webpack-plugin" #16659

MagnusBrzenk opened this issue Jan 14, 2020 · 3 comments · Fixed by #16666

Comments

@MagnusBrzenk
Copy link

🐞 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

@alan-agius4 alan-agius4 transferred this issue from angular/angular Jan 14, 2020
@alan-agius4
Copy link
Collaborator

alan-agius4 commented Jan 14, 2020

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.

@alan-agius4
Copy link
Collaborator

We should emit an actionable error.

@ngbot ngbot bot modified the milestone: needsTriage Jan 14, 2020
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jan 14, 2020
@alan-agius4 alan-agius4 self-assigned this Jan 15, 2020
mgechev pushed a commit that referenced this issue Jan 15, 2020
mgechev pushed a commit that referenced this issue Jan 15, 2020
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.