question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prod build failed

See original GitHub issue

PLEASE MAKE SURE THAT:

  • you searched similar issues online (9/10 issues in this repo are solved by googling, so please…do it)
  • you provide an online demo I can see without having to replicate your environment
  • you help me by debugging your issue, and if you can’t, do go on filling out this form

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

I want to build with this command:

ng build --aot=true --prod --build-optimizer --configuration=dev --outputHashing=all

But I got this error:

ERROR in ./node_modules/ng2-material-dropdown/fesm5/ng2-material-dropdown.js

TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression

Expected behavior

Run like dev & staging mode

Minimal reproduction of the problem with instructions (if applicable)

Download Angular 8, install ngx chips

What do you use to build your app?. Please specify the version

Angular-CLI

Angular version:

8.2.0.

ngx-chips version:

2.0.2

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
Gbuompriscocommented, Nov 18, 2019

Hi everyone, I had a look at the issue as promised: my build can’t reproduce the issue you all have; also had a look at the other package’s issue.

My gut feeling is that it may be due to a package version (angular-devkit/build-angular):

Can you try to use the same versions as above? Or share which exact versions you’re using?

3reactions
Gbuompriscocommented, Jan 16, 2020

That’s not really a solution, buildOptimzer is an important setting. If you set the correct versions the problem should be solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng build --prod => Error: Unknown argument: prod
The reason for this error is the command –prod is deprecated since Angular 12 and removed in Angular 14 based on this Angular-Deprecated ......
Read more >
prod build failed · Issue #15852 · angular/angular-cli - GitHub
My Angular CLI version is (7.3.9) , Node 10.16.3, Typescript 3.1.6 When I run:- ng build --prod It failes with the following Error....
Read more >
Production build error - Radzen IDE (Angular)
Hi, my Angluar/.net core 2.x- Application does not build in production mode with 2.61.4. I can run the app in development, but production...
Read more >
Angular CLI ng build fails - Visual Studio Feedback
I have been trying to get a dotnet core 2.0, Angular CLI 1.5.0 & Angular 5.0.0 application to compile and I just cant....
Read more >
Ionic build --prod giving many errors
As soon as I start it and try to do a ionic build --prod I get a whole shlooo of errors. Here are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found