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

momentConstructor$a is not a function #245

Closed
weini01 opened this issue Sep 30, 2020 · 1 comment · Fixed by #274
Closed

momentConstructor$a is not a function #245

weini01 opened this issue Sep 30, 2020 · 1 comment · Fixed by #274

Comments

@weini01
Copy link

weini01 commented Sep 30, 2020

Hi, I am getting the following error if I use an ngx-moment pipe. Does anybody know how to fix this, I am searching for days.

ERROR TypeError: momentConstructor$a is not a function
at TimeAgoPipe.createTimer (modules.js?hash=c8c18acd318de84d628fd2f193bd914f3054af15:140401)
at TimeAgoPipe.transform (modules.js?hash=c8c18acd318de84d628fd2f193bd914f3054af15:140390)

Environment:

Please answer the following questions:

  • Angular version: 9.1.12
  • TypeScript version: 3.7.5
  • moment version: ^2.24.0
  • Are you using moment-timezone: no
  • Are you using the angular-cli: no
  • Using Rollup/Webpack/System.js/Ionic/similar: angular-meteor
@dima-gusyatiner
Copy link

I also get this error.

momentConstructor$1 is not a function

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

Successfully merging a pull request may close this issue.

2 participants