Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-google-maps : Super expression must either be null or a function, not undefined

I have this weird error (Super expression must either be null or a function, not undefined) when I just import react-google-maps. Any idea?

import React from 'react';
import { GoogleMap } from 'react-google-maps';

class GoogleMapFlow extends React.Component{
    constructor(props){
        super(props);
    }

    render() {
        return (
            <div>Hello World</div>
        );
    }
}

export default GoogleMapFlow;
like image 730
icfeavoir Avatar asked Jul 08 '26 22:07

icfeavoir


1 Answers

I had the same issue with version 9.4.5 of react-google-maps, but react was v0.14.8. updating react to 16 solved the problem.

like image 113
Us3rAIpha8rav0 Avatar answered Jul 11 '26 18:07

Us3rAIpha8rav0