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.

compilation error when use moment adapter

See original GitHub issue

Hi Daniel,

I have a compile error if I try to compile my application with aot enabled

ERROR in ng-pick-datetime-moment\moment-adapter\moment-date-time.module.ts(19,2): Error during template compile of 'OwlMomentDateTimeModule'
  Function expressions are not supported in decorators in 'NgModule'
    'NgModule' contains the error at @angular\core\core.ts(194,31)
      Consider changing the function expression into an exported function.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
DanielYKPancommented, Jan 19, 2018

@barld Update ng-pick-datetime-moment to latest version (1.0.3)

It should be fixed.

0reactions
robvaneckcommented, Jan 19, 2018

Just what I needed this morning! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when installing material-moment-adapter package in ...
You are trying to install a recent version ( 14.1.1 ) of @angular/material-moment-adapter to an Angular project which is on major version 10...
Read more >
material-moment-adapter doesn't work in build-angular@0.901
Bug report Class with @angular/material-moment-adapter not opening in production build @angular-devkit/build-angular@0.901.0 version.
Read more >
Angular Material Moment Adapter Example - StackBlitz
Starter project for Angular apps that exports to the Angular CLI.
Read more >
@angular/material-moment-adapter | Yarn - Package Manager
Internationalized and accessible so that all users can use them. Straightforward APIs that don't confuse developers. Behave as expected across a wide variety...
Read more >
angular/material-moment-adapter - npm
Angular Material Moment Adapter. Latest version: 15.0.3, last published: 12 days ago. Start using @angular/material-moment-adapter in your ...
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