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

Update to rc6 #604

Closed
gnujeremie opened this issue Sep 1, 2016 · 27 comments
Closed

Update to rc6 #604

gnujeremie opened this issue Sep 1, 2016 · 27 comments

Comments

@gnujeremie
Copy link

Issue description
Update to rc6.

Right now, I can see at least the following issue in index.ts:

@angular/core/index has no exported member 'provide'
@timkraut
Copy link

timkraut commented Sep 1, 2016

I have the same issue

@sebholstein sebholstein modified the milestones: 0.13.1, 0.14.0 Sep 1, 2016
@timwright35
Copy link
Contributor

I put in a PR with changes to make it run with RC6 (See comment though in #606 )

sebholstein pushed a commit that referenced this issue Sep 1, 2016
@born2net
Copy link

born2net commented Sep 2, 2016

is this the same error you get ?

Uncaught (in promise) Error: (SystemJS) TypeError: core_1.Provider is not a constructor
        at Object.eval (http://localhost:9089/jspm_packages/npm/[email protected]/core.js:18:5)
        at eval (http://localhost:9089/jspm_packages/npm/[email protected]/core.js:23:4)
        at eval (http://localhost:9089/jspm_packages/npm/[email protected]/core.js:24:3)
    Evaluating http://localhost:9089/jspm_packages/npm/[email protected]/core.js

?

@timwright35
Copy link
Contributor

You get that error if you have the older code, look at the PR for support for RC6, it fixes that. Though it seems to be failing some checks.

@born2net
Copy link

born2net commented Sep 2, 2016

I did upgrade to 0.13 but still having same issue :(

@timwright35
Copy link
Contributor

The PR has not been push back into the master yet and thus would not show up in the update.

@born2net
Copy link

born2net commented Sep 2, 2016

I see... fyi also tried http://plnkr.co/edit/YX7W20?p=preview and changed to rc.6 and same issue.
tx
Sean

@born2net
Copy link

born2net commented Sep 2, 2016

wondering if we have a time table to get it pushed to Master as I am show stopped by this,
tx!!!
Sean

@timwright35
Copy link
Contributor

Yea the issue stems from the provide function in the code. Basically in RC5 provide() still worked though it was being moved to {provide:''}, in RC6 the provide() was removed so it breaks. The PR was changing all the provide()'s to the new format.

@timwright35
Copy link
Contributor

As for when the PR will be able to enter master, I have no clue, from what I can see the code is failing on test checks, from a quick look it looks like the testing code was changed in RC6 and is breaking now. I assume that needs fixed before it can be pushed in.

@born2net
Copy link

born2net commented Sep 2, 2016

got it tx!

@born2net
Copy link

born2net commented Sep 2, 2016

I will see if I can cherry pick the fix :/

@timwright35
Copy link
Contributor

The code that needs changed is in 3 files I believe only.

@born2net
Copy link

born2net commented Sep 2, 2016

be greatly appreciated if you had links to them?

@timwright35
Copy link
Contributor

timwright35 commented Sep 2, 2016

Look Here

@born2net
Copy link

born2net commented Sep 2, 2016

got it tx!!!

sebholstein pushed a commit that referenced this issue Sep 2, 2016
sebholstein pushed a commit that referenced this issue Sep 2, 2016
@born2net
Copy link

born2net commented Sep 2, 2016

please up version and push to npm fix on rc.6

@sebholstein
Copy link
Owner

@born2net done 😺

@born2net
Copy link

born2net commented Sep 2, 2016

tx!!!!

@born2net
Copy link

born2net commented Sep 2, 2016

is google maps now a module? as directives: [GOOGLE_MAPS_DIRECTIVES], of course wont work.
new docs?

@born2net
Copy link

born2net commented Sep 2, 2016

I tried to import AgmCoreModule, which seems to do the trick but I do get an error of:

Uncaught TypeError: Cannot set property stack of [object Object] which has only a getter
  onHandleError 
  ZoneDelegate.handleError  
  onHandleError 
  ZoneDelegate.handleError  
  Zone.runGuarded   

@born2net
Copy link

born2net commented Sep 2, 2016

AgmCoreModule.forRoot()
did the trick... next challenge, setCenter not working :/

@born2net
Copy link

born2net commented Sep 2, 2016

I confirmed that in current release can't set the center

this.googleMaps.latitude = 0;
this.googleMaps.longitude = 0;

workaround

this.googleMaps['_mapsWrapper'].setCenter({
            lat: lat,
            lng: lng,
        });

@timwright35
Copy link
Contributor

0.14.0 is in matter now

On Sep 2, 2016 6:00 PM, "JavaScriptNinja" [email protected] wrote:

wondering if we have a time table to get it pushed to Master as I am show
stopped by this,
tx!!!
Sean


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#604 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB4BgzQanvYNBVVCs7gDbEZch7weeI7yks5qmH93gaJpZM4JycR7
.

@gnujeremie
Copy link
Author

great for rc6, thanks :)

@thousight
Copy link

thousight commented Sep 6, 2016

I was using LazyMapsAPILoaderConfig in my bootstrapModule() like this:

import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { enableProdMode } from "@angular/core";
import { LazyMapsAPILoaderConfig } from "angular2-google-maps/core/index";
import { AppModule } from "./app.module";

platformBrowserDynamic().bootstrapModule(AppModule, {provide: (LazyMapsAPILoaderConfig, {useFactory: () => {
    let config = new LazyMapsAPILoaderConfig();
    config.apiKey = "...";
    return config;
  }})});

But then I get this error at "provide":

Argument of type '{ provide: { useFactory: () => LazyMapsAPILoaderConfig; }; }' is not assignable to parameter of type '{ useDebug?: boolean; useJit?: boolean; defaultEncapsulation?: ViewEncapsulation; providers?: any...'

Any thoughts?

@maku
Copy link

maku commented Sep 7, 2016

@thousight you should place this provide section in your modules (AppModule) providers arrray...

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

No branches or pull requests

7 participants