ng serve fails after some modification to the source code - module.buildInfo.jsonData TypeError: Cannot read property 'jsonData' of undefined
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?
Yes, the previous version in which this bug was not present was: 12.1.1
Description
Run ng serve like allways
Initial Chunk Files | Names | Size
vendor.js | vendor | 17.10 MB
main.js | main | 7.20 MB
scripts.js | scripts | 1.01 MB
styles.css | styles | 846.56 kB
polyfills.js | polyfills | 406.35 kB
runtime.js | runtime | 13.86 kB
| Initial Total | 26.54 MB
Lazy Chunk Files | Names | Size
src_app_ceramicos-la-plata_administracion_administracion_module_ts.js | - | 4.83 MB
default-src_app_ceramicos-la-plata_venta_venta_module_ts.js | - | 2.79 MB
src_app_madeco_venta_venta_module_ts.js | - | 1.87 MB
src_app_madeco_produccion_produccion_module_ts.js | - | 1.62 MB
default-src_app_madeco_common-components_common-components_module_ts.js | - | 1.39 MB
src_app_madeco_proveedores_proveedores_module_ts.js | - | 1.17 MB
src_app_ventas_ventas_module_ts.js | - | 1.16 MB
src_app_madeco_banco_bancos_module_ts.js | - | 917.62 kB
src_app_ceramicos-la-plata_logistica_logistica_module_ts.js | - | 893.92 kB
src_app_contabilidad_contabilidad_module_ts.js | - | 781.78 kB
default-src_app_madeco_custom-directives_custom-directives_module_ts-src_app_main_service_con-9c34b3.js | - | 557.74 kB
src_app_ceramicos-la-plata_banco_banco_module_ts.js | - | 482.17 kB
src_app_ceramicos-la-plata_logistica-handhelds_logistica-handhelds_module_ts.js | - | 386.45 kB
src_app_ceramicos-la-plata_planeamiento_planeamiento_module_ts.js | - | 385.68 kB
src_app_ceramicos-la-plata_grupo_grupo_module_ts.js | - | 302.96 kB
src_app_ceramicos-la-plata_facturacion_facturacion_module_ts.js | - | 277.80 kB
src_app_shared-components_lector-qr-web-worker_qr-decoder_worker_ts.js | - | 253.25 kB
src_app_ceramicos-la-plata_etiquetas_etiquetas_module_ts.js | - | 192.78 kB
default-src_app_ceramicos-la-plata_venta_caja-ventas_caja-ventas_component_ts-src_app_ceramic-ecd1a6.js | - | 172.79 kB
node_modules_firebase_messaging_dist_index_esm_js.js | - | 147.01 kB
src_app_administracion_administracion_module_ts.js | - | 107.53 kB
default-src_app_madeco_logistica_logistica_module_ts.js | - | 103.91 kB
src_app_ceramicos-la-plata_tablero_tablero_module_ts.js | - | 55.45 kB
default-src_app_ceramicos-la-plata_administracion_ingreso-egreso-motivo_ingreso-egreso-motivo-f547ef.js | - | 33.06 kB
default-src_app_ceramicos-la-plata_logistica_local-storage_local-storage-clp-logistica-strategy_ts.js | - | 23.66 kB
src_app_configuracion_configuracion_module_ts.js | - | 19.57 kB
common.js | common | 9.92 kB
π¬ Minimal Reproduction
Modify some code then the error shows up after the rebuild of a lazy chunk
π₯ Exception or Error
Generating browser application bundles.../home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/json/JsonGenerator.js:119
let data = module.buildInfo.jsonData;
^
TypeError: Cannot read property 'jsonData' of undefined
at JsonGenerator.getSize (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/json/JsonGenerator.js:119:31)
at NormalModule.size (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/NormalModule.js:1224:43)
at NormalModule.cleanupForCache (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/NormalModule.js:364:9)
at NormalModuleFactory.cleanupForCache (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/NormalModuleFactory.js:670:11)
at Compiler._cleanupLastNormalModuleFactory (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:383:34)
at Compiler.createNormalModuleFactory (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:1049:8)
at Compiler.newCompilationParams (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:1071:30)
at Compiler.compile (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:1082:23)
at /home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Watching.js:188:19
at Hook.eval [as callAsync] (eval at create (/home/naxs/Trabajo/NaxsCloud/NaxsCloudWeb/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
π Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ β³ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 12.1.2
Node: 14.17.0
Package Manager: npm 7.19.1
OS: linux x64
Angular: 12.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1201.2
@angular-devkit/build-angular 12.1.2
@angular-devkit/build-webpack 0.1201.2
@angular-devkit/core 12.1.2
@angular-devkit/schematics 12.1.2
@angular/fire 6.1.5
@schematics/angular 12.1.2
ng-packagr 12.1.2
rxjs 6.6.7
typescript 4.3.5
webpack 5.44.0
ng build works fine
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
ng serve crashes after second code change - Stack Overflow
It seems like a problem by angular... Try uninstalling angular globally and then install it again npm install -g @angular/cli@12.1.12.
Read more >ng serve - Angular
Option Description Value Type Default Value
ββhmr Enable hot module replacement. boolean false
ββhost Host to listen on. string localhost
ββopen Opens the url in default...
Read more >@angular-architects/module-federation - npm
Seamlessly using Webpack Module Federation with the Angular CLI. ... Assigning a new port to serve ( ng serve ) several projects at...
Read more >How to fix common Selenium errors? - Ultimate QA
Here's a code sample for C# and setting ChromeOptions: ... [ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
Read more >48 answers on StackOverflow to the most popular Angular ...
Angular 2 Component Constructor Vs OnInit Β· Source Top. Can't bind to 'ngModel' since it isn't a known property of 'input'. 442+Β ...
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
A release should happen later on today.
When can we expect the fix to be released?