defaultEncapsulation not working in Ivy
See original GitHub issueAngular 9.0.0
Description
defaultEncapsulation
option in platformBrowserDynamic().bootstrapModule
donāt work.
š¬ Minimal Reproduction
Just minimal CLI project with
platformBrowserDynamic().bootstrapModule(AppModule, { defaultEncapsulation: ViewEncapsulation.None }) .catch(err => console.error(err));
š Your Environment
Angular CLI: 9.0.1 Node: 13.7.0 OS: linux x64 Angular: 9.0.0 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... router Ivy Workspace: Yes Package Version ----------------------------------------------------------- @angular-devkit/architect 0.900.1 @angular-devkit/build-angular 0.900.1 @angular-devkit/build-optimizer 0.900.1 @angular-devkit/build-webpack 0.900.1 @angular-devkit/core 9.0.1 @angular-devkit/schematics 9.0.1 @angular/cli 9.0.1 @ngtools/webpack 9.0.1 @schematics/angular 9.0.1 @schematics/update 0.900.1 rxjs 6.5.4 typescript 3.7.5 webpack 4.41.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
DefaultEncapsulation in angular-cli --prod - Stack Overflow
I've created a basic application using angular-cli command ng new MyProject and to disable view encapsulation globally I changed main.tsĀ ...
Read more >What's new with Angular 9? - AnAr Solutions Pvt. Ltd.
Ivy renderer being the default in Angular 9, no need to set enableIvy in the tsconfig.json; Work faster with lesser instructions required forĀ ......
Read more >CompilerOptions - Angular
Note: the useJit and missingTranslation config options are not used in Ivy, passing them has no effect. Those config options are deprecated since...
Read more >interface.ng2component - UI-Router
ViewEncapsulation.ShadowDom : Use Shadow DOM v1 to encapsulate styles. If not supplied, the value is taken from CompilerOptions . The default compiler option...
Read more >Practice Exam 2 - NETI 100 ⢠Ivy Tech Community College - Chegg
Exchange is not considered a stable neighbor state. In the loading state, the routers exchange LSUs that contain LSAs. Loading is not considered...
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
This doesnāt need a reproduction, I know off the top of my head that it doesnāt work anymore. This is due to the JIT compilation via decorators in Ivy, which no longer have any dependency on
platformBrowserDynamic.bootstrapModule()
.There may be some fix we can put into place here.
@xuxicheta could you provide a bit more info before we investigate? When you say ādonāt workā, what do you mean, exactly:
Also, what is the exact CLI command that leads to troubles?