-
Notifications
You must be signed in to change notification settings - Fork 817
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
Ionic v2 AgmCoreModule import #686
Comments
@Juanlu91 have you managed to launch angular2-google-maps in ionic? I'm stuck trying to getting started. Maybe you could help I'm importing AgmCoreModule this way
And I'm trying to add AgmCoreModule in imports
Here is my full ngModule definition
And I'm getting this error when trying to build
|
I get the same error if I try to build angular2-google-maps in an ionic app. Changing the import statement does not change anything. The error is the same. Any solution for that? |
Ohh, I have the same issue. Any help? |
Sorry guys, the only way I found to get it to work was to add '--dev' flag to the build task in package.json as described here: "scripts": {
"build": "ionic-app-scripts build --dev", However, this produces very slow apps. So fow now, I'll use plain google-maps javascript v3 until the AOT compilation works again. |
This will be fixed with #709. |
Great job @SebastianM! Thank you |
I've upgraded to Ionic2 RC4 and Ionic app scripts 0.47 and the error started occurring again:
Perhaps the package is not up to date anymore with the latest ngc? or with an incorrect version of metadata.json? |
Issue description
I'm working on an Ionic v2 project. The import statement presented in Getting started guide does not work.
Possible solution
I think it should be:
import {AgmCoreModule} from 'angular2-google-maps/ts/core';
Instead of:
import {AgmCoreModule} from 'angular2-google-maps/core';
angular2 & angular2-google-maps version
The text was updated successfully, but these errors were encountered: