@angular-devkit/build-optimizer@0.1001.0 after prod build, only a black screen is displayed on the device
See original GitHub issue🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- xi18n
- run
- config
- help
- version
- doc
Description
Install @angular-devkit/build-angular@0.1001.0 or @angular-devkit/build-angular@0.1001.0-rc.0
After build, only a black screen is displayed on the device and the app cannot be used.
FYI, it works without problem until version @angular-devkit/build-angular@0.1000.8 or @angular-devkit/build-angular@0.1001.0-next.7
🔬 Minimal Reproduction
- npm install @angular-devkit/build-angular@0.1000.8 or @angular-devkit/build-angular@0.1001.0-next.7
- ng build --prod
- run on ios/android device
- it works fine
- npm install @angular-devkit/build-angular@0.1001.0 or @angular-devkit/build-angular@0.1001.0-rc.0
- ng build --prod
- run on ios/android device
- only a black screen is displayed on the device and the app cannot be used
🌍 Your Environment
Angular CLI: 10.1.0
Node: 12.18.3
OS: darwin x64
Angular: 10.1.0
... 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.1001.0
@angular-devkit/build-angular 0.1001.0-next.7
@angular-devkit/build-optimizer 0.1001.0
@angular-devkit/build-webpack 0.1001.0
@angular-devkit/core 10.1.0
@angular-devkit/schematics 10.1.0
@angular/cdk 10.2.0
@angular/fire 6.0.2
@angular/material 10.2.0
@angular/material-moment-adapter 10.2.0
@angular/pwa 0.1001.0
@angular/youtube-player 10.2.0
@ngtools/webpack 10.1.0-next.7
@schematics/angular 10.1.0
@schematics/update 0.1001.0
rxjs 6.6.2
typescript 4.0.2
webpack 4.44.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:19
Top Results From Across the Web
Angular CLI v11.0.0-next.0 Release - GitClear
#18639. @angular-devkit/build-optimizer@0.1001.0 after prod build, only a black screen is displayed on the device.
Read more >I get this error:Cannot find module '@angular-devkit/build ...
installed the latest. npm install -g @angular/cli@latest. but first I update my npm with this command: installed the latest npm.
Read more >Fixing Could not find module @angular-devkit/build-angular ...
To fix Could not find module angular-devkit-build-angular error in Angular follow the below steps 1. Delete node_modules folder and run npm ...
Read more >Angular and Deep Learning
dia, electronic display or mechanical display, including, but not limited to, ... 0.1001.0-next.5 ... npm install --save-dev @angular-devkit/build-angular.
Read more >angular/angular-cli - Gitter
Does anyone know why for @angular-devkit/build-angular the version went from ... Just published a Angular component library for BabylonJS/WebGL to GitHub: ...
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 Free
Top 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
HI, I started looking and there are a multiple reasons why using
kakao-sdk
is causing the failure.import { KakaoCordovaSDK } from 'kakao-sdk/ngx';
the AOT version is located atimport { KakaoCordovaSDK } from 'kakao-sdk';
(Note: shipping both AOT and JIT is not needed, AOT compiled libraries can work in JIT mode as well.)I will try to land a fix for this soon, however I strongly suggest that you reach out the library author to address the mentioned issues.
Tested by overwriting the file, it was the same.