Angular-cli: Module build failed: TypeError: Cannot read property 'kind' of undefined

Created on 8 May 2020  路  7Comments  路  Source: angular/angular-cli

describe the bug
When doing a prod build , an error is thrown for saturn-datepicker.js

To Reproduce
Steps to reproduce the behavior:

Create project with saturn-datepicker.js
npm update
ng build --prod
Error is thrown

screenshot
23

more info

Most helpful comment

There is something amiss with CLI 9.1.4 and Angular 9.1.5.
run: npm install @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected]

then ng build

Worked for me

All 7 comments

There is something amiss with CLI 9.1.4 and Angular 9.1.5.
run: npm install @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected]

then ng build

Worked for me

duplicate? https://github.com/angular/angular-cli/issues/17674

Updating angular to 9,1,6 fixed for me

@komalgmore, can you try to update to latest version Angular and Angular CLI? If, the problem persists kindly setup a minimal repro.

You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

@komalgmore, can you also provide the output of ng version?

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

It works when i update latest version of Angular and Angular cli

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings