Angular 9.1.5 strange behavior
See original GitHub issue🐞 bug report
Is this a regression?
✍️ Yes, the previous version in which this bug was not present was: 9.1.4
Description
✍️ The standard compilation of previously long time valid code leads to a strange problem with a message like:
ERROR in Unable to write a reference to HeaderPanelComponent in .../github/m-eso/libs/shared/modules/core/src/lib/components/header-panel/header-panel.component.ts from .../github/m-eso/libs/shared/modules/core/src/lib/core.module.ts
The mentioned component and module are correct and contain valid code. It looks that the message is misleading and the base of the problem is some new change in the core of Angular 9.1.5.
🔬 Minimal Reproduction
Not sure if it is possible to reproduce because of the strange circumstances in a new version of Angular 9.1.5.
🌍 Your Environment
Angular Version:
Angular CLI: 9.1.4
Node: 12.13.1
OS: win32 x64
Angular: 9.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect: 0.901.4
@angular-devkit/architect-cli: 0.901.4
@angular-devkit/build-angular: 0.901.4
@angular-devkit/build-optimizer: 0.901.4
@angular-devkit/build-webpack: 0.901.4
@angular-devkit/core: 9.1.4
@angular-devkit/schematics: 9.1.4
@angular-devkit/schematics-cli: 0.901.4
@angular/cdk: 9.2.2
@ngtools/webpack: 9.1.4
@schematics/angular: 9.1.4
@schematics/schematics: 0.901.4
@schematics/update: 0.901.4
rxjs: 6.5.5
typescript: 3.8.3
webpack: 4.42.0
info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\NodeJS\\node.exe',
1 verbose cli 'C:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'stage'
1 verbose cli ]
2 info using npm@6.12.1
3 info using node@v12.13.1
4 verbose run-script [ 'prestage', 'stage', 'poststage' ]
5 info lifecycle m-eso@0.0.0~prestage: m-eso@0.0.0
6 info lifecycle m-eso@0.0.0~stage: m-eso@0.0.0
7 verbose lifecycle m-eso@0.0.0~stage: unsafe-perm in lifecycle true
...
9 verbose lifecycle m-eso@0.0.0~stage: CWD: C:\Data\WAMP\github\m-eso
10 silly lifecycle m-eso@0.0.0~stage: Args: [ '/d /s /c', 'ng build --configuration=staging' ]
11 silly lifecycle m-eso@0.0.0~stage: Returned: code: 1 signal: null
12 info lifecycle m-eso@0.0.0~stage: Failed to exec stage script
13 verbose stack Error: m-eso@0.0.0 stage: `ng build --configuration=staging`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Utils\NVM\v12.13.1\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (C:\Utils\NVM\v12.13.1\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid m-eso@0.0.0
15 verbose cwd C:\Data\WAMP\github\m-eso
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\NodeJS\\node.exe" "C:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "run" "stage"
18 verbose node v12.13.1
19 verbose npm v6.12.1
20 error code ELIFECYCLE
21 error errno 1
22 error m-eso@0.0.0 stage: `ng build --configuration=staging`
22 error Exit status 1
23 error Failed at the m-eso@0.0.0 stage script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Angular 9.1.5 upgrade issue - Stack Overflow
I've upgraded my project from Angular 9.0.5 to 9.1.5 and now I have an issue when compiling: ERROR in TypeError: Cannot read property...
Read more >Angular 10 Upgrades are Still Challenging
Funny how Angular includes these as dependencies in it's own tooling, but the migration doesn't appear to update these. Package Current Wanted ...
Read more >maximum call stack size exceeded angular - You.com
1.This error occur when there is an infinite loop. As you have mentioned that the page loads when app-heroes is commented, this might...
Read more >@schematics/angular | Yarn - Package Manager
Angular CLI logo. The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly ......
Read more >Fix list for IBM MQ Version 9.1 LTS
IT39821, Update the IBM MQ embedded angular.js to 1.8.2 ... IT29334, IBM MQ MFT: Resource monitor RETRY behavior doesn't work.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are investigating…
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.