angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.77k stars 11.98k forks source link

[ng9.1.1] stuck on 95% emitting index-html-webpack-plugin #17492

Closed indraraj26 closed 4 years ago

indraraj26 commented 4 years ago

🐞 Bug report

Command (mark with an x)

Is this a regression?

Yes, the previous version in which this bug was not present was: 9.0.2 ### Description When i am using this package https://github.com/akserg/ng2-slim-loading-bar It has old rxjs import path after altering that in __ivy__ngcc/src/slim-loading-bar.service,js it will always stuck at 95% ## πŸ”¬ Minimal Reproduction

πŸ”₯ Exception or Error




ERROR in ./node_modules/ng2-slim-loading-bar/__ivy_ngcc__/src/slim-loading-bar.service.js
Module not found: Error: Can't resolve 'rxjs/Subject' in 'D:\project\node_modules\ng2-slim-loading-bar\__ivy_ngc

i changed import path there it will always stuck at 95%

🌍 Your Environment




ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 9.1.1
Node: 10.16.3
OS: win32 x64

Angular: 9.1.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.1
@angular-devkit/build-angular     0.901.1
@angular-devkit/build-optimizer   0.901.1
@angular-devkit/build-webpack     0.901.1
@angular-devkit/core              9.1.1
@angular-devkit/schematics        9.1.1
@angular/cdk                      9.2.0
@angular/cli                      9.1.1
@angular/material                 9.2.0
@ngtools/webpack                  9.1.1
@schematics/angular               9.1.1
@schematics/update                0.901.1
rxjs                              6.5.4
typescript                        3.8.3
webpack                           4.42.0

Anything else relevant?

indraraj26 commented 4 years ago

even if i changed rxjs import path before ivy compiling then also its stuck on 95%. I think it is failed to pickup style.css which is in bundles of ng2-slim-loading-bar

indraraj26 commented 4 years ago

now even after removing that package still it is stuck on 95%, yesterday night everything was working perfectly. Is there any steps that i can do to see what is wrong in compiling?

alan-agius4 commented 4 years ago

@indraraj26, I am not sure what's going on here. I suggest to revert any changes done and go back to a working state. If you added a new node package, remove it from the package.json, remove node_modules and do a fresh install.

After that try to create minimal reproduction show casing the issue. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

indraraj26 commented 4 years ago

Hi @alan-agius4 , yes if i rollback to old commits which was merged by other guy in morning then it is working fine. If i checked his merge changes there is no extra package installed.

alan-agius4 commented 4 years ago

In that case, it must have been something which is related to the code.

If you can determine what piece of code resulted in the un-actionable error it would be great so we can determine if we can do anything from our end.

Thanks.

indraraj26 commented 4 years ago

Hi @alan-agius4 , Thank you for your instant support. What i have done its working now btw i am not able to reproduce 😞

git reset --hard oldcommit
git merge featureBranch
npm start
angular-automatic-lock-bot[bot] commented 4 years ago

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.