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.

Allow using optimization and buildOptimizer = true in angular.json

See original GitHub issue

Hey man. today i got a crazy bug. When a call serializer two params just disappear. the bug only happen in ng build --prod

I discovered what is cause the bug my app has optimization and buildOptimizer = true in angular.json

if i change to false your lib work`s great! So can u do something to allow us run the build with this options igual true? Captura de tela 2021-04-22 150332

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
GillianPerardcommented, Jun 14, 2021

Try with the new 3.4.1 version. 😊

1reaction
GillianPerardcommented, Jun 11, 2021

I think I found your problem, it’s due to JsonProperty inside constructor I’ll merge the PR #144 soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

in angular.json buildOptimizer not allowed to be set for "serve"
I am surprised to see that optimization and aot are valid option for ng serve . My suggestion would be to use multiple...
Read more >
An unhandled exception occurred: The 'buildOptimizer' option ...
Go into your angular.json file; In that file, follow the path projects -> architect -> build -> options; Change "buildOptimizer" to true and ......
Read more >
Angular Build Optimizations - IntSights
Our solution was to strip all the files that were not called using the package moment-locales-webpack-plugin. In order to use this plugin, a ......
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
How to Optimize your Angular Application for Production
The build optimizer removes Angular specific decorators, constructor parameters and makes it easier for code minifiers to remove unused code. ng ...
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