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.

can't compile on prod on Angular 7

See original GitHub issue
ERROR in ../ng-pick-datetime-moment/moment-adapter/moment-date-time.module.ts(22,2): Error during template compile of 'OwlMomentDateTimeModule'
  Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule'
    'NgModule' calls 'ɵmakeDecorator'.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:11
  • Comments:14

github_iconTop GitHub Comments

25reactions
Dedmecommented, Jun 4, 2019

i fixed this by ensuring “ng-pick-datetime-moment” is version “1.0.7”. 1.0.8 is borked

7reactions
piernikcommented, Jun 4, 2019

@Dedme It’s working - thanks!

@DanielYKPan I think Your component is the best in its category. I hope You will maintain it. If not find someone who will because it will be shame to loose it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 7 production build does not load styles and js
So, I figured out that if I want to serve this files statically without using some sort of server in front of the...
Read more >
Identify and Fix Build and Deployment Errors in Your ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
ng build
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 >
Okta angular can't compile with "ng build --prod" - Questions
We are using Angular 8 with the latest okta-angular package. Using “ng serve” works, but when compiling with “ng build --prod”, the build ......
Read more >
How to speed up your Angular builds
If code takes even two minutes to compile, it's easy to get distracted. ... The flags in the prod column tend to optimize...
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