Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amDateFormat - momentConstructor$9 is not a function #276

Closed
PillowPillow opened this issue Jan 4, 2022 · 2 comments
Closed

amDateFormat - momentConstructor$9 is not a function #276

PillowPillow opened this issue Jan 4, 2022 · 2 comments

Comments

@PillowPillow
Copy link

Description of the Issue and Steps to Reproduce:

Did you search for duplicate issue? [Yes / No] Yes

Hello, i m facing an issue after upgrading from the v5.0.0 to the v6.0.1 (6.0.2 is broken cf #275).
The pipe amDateFormat triggers an error "momentConstructor$9 is not a function".

import * as moment from 'moment';
// ...
class MyComponent {
    // ...
    date = moment();
}
<span>{{date|amDateFormat:'DD/MM/YYYY, HH:mm:ss'}}<span>

Ensure your issue is isolated to ngx-moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer.
Reproduced in an empty repository with only angular, moment@2.29.1 & ngx-moment@6.0.1

Environment:

Please answer the following questions:

  • Angular version?
    13.1.1
  • TypeScript version?
    4.5.4
  • moment version?
    2.29.1
  • Are you using moment-timezone?
    no
  • Are you using the angular-cli?
    yes
  • Using Rollup/Webpack/System.js/Ionic/similar?
    webpack through Angular Cli
@pete-mcwilliams
Copy link

was fixed in 6.0.2 #245

@PillowPillow
Copy link
Author

thank's @pete-mcwilliams .. so waiting for 6.0.3 with a fix for #275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants