Skip to content
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

Typescript error: no exported member 'MomentModule' #80

Closed
ganySA opened this issue Oct 1, 2016 · 4 comments
Closed

Typescript error: no exported member 'MomentModule' #80

ganySA opened this issue Oct 1, 2016 · 4 comments

Comments

@ganySA
Copy link

ganySA commented Oct 1, 2016

Hi

I have installed angular2-moment and i seem to be getting an error:

angular2-moment has no exported member 'MomentModule' ?

Thanks

@ganySA
Copy link
Author

ganySA commented Oct 1, 2016

When i look at the version i get from npm and i open index.d.ts it does not have and export for "module" as per the source code here - is the latest version published to npm?

@ganySA
Copy link
Author

ganySA commented Oct 1, 2016

Ok i installed with the latest version using npm using @1.0.0-beta.1

Still getting the same error no exported module 'MomentModule'

@urish
Copy link
Owner

urish commented Oct 1, 2016

Hi, simply import it like this:

import { MomentModule } from 'angular2-moment/module';

@urish urish closed this as completed Oct 1, 2016
@urish
Copy link
Owner

urish commented Oct 1, 2016

Also see #68 if you are using AoT

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

No branches or pull requests

2 participants