profile
viewpoint

Ask questionsModule build failed (from ./node_modules/@ngtools/webpack/src/index.js)

<!--πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…

Oh hi there! πŸ˜„

To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates.

πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…-->

🐞 bug report

Affected Package

<!-- Can you pin-point one or more @angular/* packages as the source of the bug? --> <!-- ✍️edit: --> The issue is caused by package @ngtools/webpack

Is this a regression?

<!-- Did this behavior use to work in the previous version? --> <!-- ✍️--> No.

Description

<!-- ✍️--> A clear and concise description of the problem... After updating angular version 8 to 9, when I try to execute the commands ionic serve orng serve I get the compilation error.

πŸ”₯ Exception or Error

<pre><code> [ng] ERROR in ./src/zone-flags.ts [ng] Module build failed (from ./node_modules/@ngtools/webpack/src/index.js): [ng] Error: /home/mejia97/Documentos/CTM/ctm-front/src/zone-flags.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. [ng] at AngularCompilerPlugin.getCompiledFile (/home/mejia97/Documentos/CTM/ctm-front/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:909:23) [ng] at /home/mejia97/Documentos/CTM/ctm-front/node_modules/@ngtools/webpack/src/loader.js:41:31 [ng] at runMicrotasks (<anonymous>) [ng] at processTicksAndRejections (internal/process/task_queues.js:97:5) </code></pre>

🌍 Your Environment

Angular Version: <pre><code> _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ / | | | | / β–³ \ | ' \ / _| | | | |/ _ | '| | | | | | | / ___ | | | | (| | || | | (| | | | || |___ | | // __| ||_, |_,||_,|| _||_| |___/

Angular CLI: 9.0.1 Node: 13.7.0 OS: linux x64

Angular: 9.0.0 ... animations, cdk, common, compiler, compiler-cli, core, forms ... language-service, material, platform-browser ... platform-browser-dynamic, router, service-worker 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 @angular/fire 5.4.2 @ngtools/webpack 9.0.1 @schematics/angular 8.1.3 @schematics/update 0.900.1 rxjs 6.5.4 typescript 3.7.5 webpack 4.41.2 </code></pre>

Anything else relevant? <!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->

<!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->

angular/angular-cli

Answer questions rtpHarry

Ah ok, through the power of "embarrassing myself publicly", I almost immediately figured this out.

Note to others: read the instructions - its src/tsconfig.app.json not the tsconfig.json in the root of the project.

useful!
source:https://uonfu.com/
answerer
Matthew Harris rtpHarry rtp design ltd Lincoln, UK https://articles.runtings.co.uk/ Digital nomad, travelling the world, sporadically contributing to open source projects.
Github User Rank List