-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ionic 2: Module 'moment' has no exported member 'UnitOfTime'. #112
Comments
Same issue here. I don't see anywhere in the momentjs documentation where 'UnitOfTime' exists. |
As a workaround until it gets fixed, I added But I think that this has more to do with momentjs than with this module. |
I confirm that angular2-moment currently produces this error with moment 2.16.0. This is the specific commit that introduced that change: moment/moment@8c0c6a3 I hope to publish a new release that will address it within the next few days. In the meanwhile, you can stick with moment 2.15.2 |
Work! |
Just wanted to let others know what solution worked for me--I did not revert to the older version of moment -- I am using 2.17.1. Also I didn't need to change any typings files at all. What I did, in my angular component .ts file was to cast my string variable into the moment some.component.ts
Things of Note:
|
Hi everybody I have this issue: 'moment' has no exported member 'DurationInputArg1'. Complete error: Fixed but now I have another error: ERROR TypeError: specialTokens[fakePart.substring(...)] is not a function |
This is still happening for me.
|
I updated the ionic-app-scripts to 0.0.42 and on process 'transpile', I got the following error:
[14:21:19] transpile started ...
[14:21:23] typescript: ...nfo/app/node_modules/angular2-moment/difference.pipe.d.ts, line: 4
Module 'moment' has no exported member 'UnitOfTime'.
[14:21:23] transpile failed
As we can see, the 'UnitOfTime' is not an exported module from 'moment'. What I can do to solve this?
Angular2-moment version used is 1.0.0-beta.6.
The text was updated successfully, but these errors were encountered: