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 {} 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’)

Any ideas?


Can you post the code in question?