Using ng12 partial lib and source map causing build memory exception
See original GitHub issue🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Worked with full ivy libs. Stopped working with partial ivy libs
Description
I have an app with the following source map settings:
"sourceMap": {
"scripts": true,
"styles": true,
"vendor": true
},
I updated to angular 12 and changed my lib (that my app is using) to build using partial ivy. Now I get memory exception when building the app. It works with my lib in full ivy.
Changing the vendor property above to false will make it build. But I need the vendor script debugging, i.e. for it to be true.
🔬 Minimal Reproduction
See above
🔥 Exception or Error
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF713284C9F napi_wrap+111007
2: 00007FF713228226 v8::base::CPU::has_sse+59910
3: 00007FF713229126 node::OnFatalError+294
4: 00007FF713B02ABE v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF713AE788D v8::SharedArrayBuffer::Externalize+781
6: 00007FF7139909DC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516
7: 00007FF71399BDFA v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258
🌍 Your Environment
Angular CLI: 12.2.5
Node: 14.17.6
Package Manager: yarn 1.22.5
OS: win32 x64
Angular: 12.2.5
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1202.5
@angular-devkit/build-angular 12.2.5
@angular-devkit/core 12.2.5
@angular-devkit/schematics 12.2.5
@schematics/angular 12.2.5
ng-packagr 12.2.1
rxjs 6.6.7
typescript 4.3.5
Anything else relevant?
No
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:23 (2 by maintainers)
Top Results From Across the Web
Angular 12 library source maps unavailable - Stack Overflow
I resolved this problem in angular 14 by putting sourceMap true in angular.jsoin and tsconfig.json and : In chrome : Inspect -> Parameters ......
Read more >allocation failure scavenge might not succeed angular
When setting compilationMode to partial in the library build, then running or building the app project (which depends on the library) fails with...
Read more >LPS Pay Schedule - MN
49, 618, MINNEAPOLIS,MN, NG12, ASSISTANT HEAD NURSE, 2, 610, 0, 0, 05/31/2015, 76,752, 79,054, 81,356, 83,658, 85,960, 88,262, 90,564, 92,866, 95,168 ...
Read more >A Building Stone Assessment of sandstone in Iona Nunnery ...
source of the extract. Maps and diagrams in this report use topography based on Ordnance. Survey mapping. A Building Stone Assessment of sandstone...
Read more >British Society of Gastroenterology consensus guidelines ... - Gut
This guideline for management of inflammatory bowel disease in adults over 16 years of age was developed by Stakeholders representing UK physicians (British ......
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
I got the approval from my boss to host the app on a private shared repo. I will do that asap.
I can confirm this is working now 😃 Good job 👍