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.

Angular production support

See original GitHub issue

When importing your lib to an angular project (I tried it with 6.1.9 with a simple empty project created with ng new) and running ng serve it works fine.

When I run ng serve --prod though, calling scrollIntoView just does nothing. There are no errors on compilation or at runtime, but apparently minification/uglification destroys something essential.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
RichieRockcommented, Oct 12, 2018

Thank you for fixing this! I had the exact same issue and was wondering quite a long time why it’s not working in production until I decided to come to this github issues page and found this 😃

Thanks a lot!

1reaction
Ludevikcommented, Oct 19, 2018

Thank you. I am now able to set “buildOptimizer”: true for my prod builds 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
We update peer dependencies in minor versions by expanding the supported versions, ... and reliability of the platform for production users that prefer...
Read more >
Deploying an application - Angular
Deploying your application is the process of compiling, or building, your code and hosting the ... To support your UX/UI development, see Angular...
Read more >
Deployment - Angular
For the simplest deployment, create a production build and copy the output directory to a web server. ... A routed application should support...
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 >
Service worker in production - Angular
The service worker responds to requests made by the Angular application for resources or data from a local cache, without needing to wait...
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