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: Class extends value #<Object> is not a constructor or null #814

Closed
cyberprophet opened this issue Nov 2, 2023 · 1 comment
Closed
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@cyberprophet
Copy link

new google.maps.plugins.loader.Loader(loaderOptions).loadCallback(error =>
{
    . . .
}

Receive this error message "TypeError: Class extends value # is not a constructor or null" in the Code section below while executing the code above.

 _.Xh(ok.prototype, om);
    var Qga = class extends Event {
        constructor() {
            super("gmp-zoomchange")
        }
    }

When I tracked down the error message, I found the following code.

https://maps.googleapis.com/maps/api/js?libraries=drawing%2Cgeometry%2Cplaces%2Cvisualization%2Ccore%2Cmarker&key={apiKey}&callback=google.maps.__ib__

Maybe it happens in the process of importing libraries, can you tell me why?

I think I've had a similar problem with the version going up before.

@cyberprophet cyberprophet added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 2, 2023
@cyberprophet
Copy link
Author

I found the cause and solved it.

I realized that when using JS, I should pay attention to global variable names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant