Google maps error v3

defined is not an object (evaluating ‘new WEBPACK_IMPORTED_MODULE_2_google_maps[“google”].maps’) PlacesPage

I am getting this error when trying to go to places page.

First google was not recognised so I did npm install --save @types/googlemaps
Import

import {} from ‘googlemaps’;

but now getting this problem do not know what the problem is.

Instead of that empty import line, try this:

declare const google: any;

Between your imports and your class decorator

Now I am getting error [Error] ERROR – Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating ‘modules[moduleId].call’)
webpack_require@http://localhost:8100/build/vendor.js:55:29

Any ideas?
Thanks.

Can you post the code in question?