mgechev / mgechev/angular-seed

AOT prod build error

Open
#2,347 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

When i tried to produce aot-build iam facing the same version mismatch error for multiple packages. Is it due to the incompatibility of those packages version to produce aot build? Can anyone help me with this. Thanks in advance!!
[16:17:54] Starting 'compile.ahead.prod'...
Error: Metadata version mismatch for module C:/Users/awdev1/Desktop/mm-ngx/node_modules/@ng-bootstrap/ng-bootstrap/accordion/accordion-config.d.ts, found version 4, expected 3
at StaticSymbolResolver.getModuleMetadata (C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\@angular\compiler.es5.js:25586:7)
at StaticSymbolResolver._createSymbolsOf (C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\@angular\compiler.es5.js:25374:10)
at StaticSymbolResolver.getSymbolsOf (C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\@angular\compiler.es5.js:25355:12)
at C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\bundles\compiler.umd.js:24241:30
at Array.forEach ()
at extractProgramSymbols (C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\@angular\compiler.es5.js:24210:55)
at AotCompiler.analyzeModulesAsync (C:\Users\awdev1\Desktop\mm-ngx\node_modules\@angular\compiler\@angular\compiler.es5.js:23766:7)
at CodeGenerator.codegen (C:\Users\awdev1\Desktop\mm-ngx\packages\compiler-cli\src\codegen.ts:41:10)
at codegen (C:\Users\awdev1\Desktop\mm-ngx\tools\tasks\seed\compile.ahead.prod.ts:13:69)
at Object.main (C:\Users\awdev1\Desktop\tools\@angular\tsc-wrapped\src\main.ts:136:12)
Compilation failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-seed@1.0.0 build.prod.aot: `gulp build.prod.aot --color --env-config prod --build-type prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed@1.0.0 build.prod.aot script.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `build.prod.aot` command and inspect `tools/tasks/seed/compile.ahead.prod.ts`, `packages/compiler-cli/src/codegen.ts`, and the reported `@ng-bootstrap/ng-bootstrap` metadata file. Compare the package and Angular compiler versions involved; done means the production AOT build completes without the metadata version mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.