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

TypeError: Failed to execute 'getComputedStyle' on 'Window' #249

Closed
thanglv2 opened this issue May 8, 2016 · 1 comment
Closed

TypeError: Failed to execute 'getComputedStyle' on 'Window' #249

thanglv2 opened this issue May 8, 2016 · 1 comment

Comments

@thanglv2
Copy link

thanglv2 commented May 8, 2016

I'm have a bug when i use google maps component: "Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'" (in Firefox: TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element)
And here is the code:

 <GoogleMapLoader
        containerElement={
          <div
            {...this.props}
            style={{
              height: `100%`,
            }}
          />
        }
        googleMapElement={
          <GoogleMap
            ref={(map) => (this._googleMapComponent = map) && console.log(map.getZoom())}
            defaultZoom={3}
            defaultCenter={{ lat: -25.363882, lng: 131.044922 }}
          >
          </GoogleMap>
        }
      />

This code is very simple, and in the other project i can run it normaly, but in this project is not, so i really don't know why, please help me fix this problem

@tomchentw
Copy link
Owner

We're going to look into this shortly. In the meantime, feel free to submit a minimal repository that can fully reproduce this error so that anyone can try to help out. Thanks.

We're also looking for maintainers. Involve in #266 to help strengthen our community!

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

No branches or pull requests

2 participants