3

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;
icfeavoir
  • 41
  • 1
  • 6

1 Answers1

1

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.

Us3rAIpha8rav0
  • 354
  • 5
  • 12