React-google-maps: Broken in production

Created on 7 Oct 2017  路  3Comments  路  Source: tomchentw/react-google-maps

So this is probably something I have done/bad configuration but when running my app in production the map does not load. If I drag on the map I get the following errors:

Uncaught TypeError: Cannot read property 'x' of undefined
    at Mv (common.js:155)
    at _.Ev._.k.kj (common.js:214)
    at Object.trigger (js:111)
    at Oy (map.js:20)
    at _.Wv.<anonymous> (map.js:19)
    at Object.trigger (js:111)
    at _.Wv._.k.sm (common.js:223)
    at Object.trigger (js:111)
    at kq.<anonymous> (common.js:136)
    at Object.trigger (js:111)

Everything works as expected in development mode.

Any ideas?

Most helpful comment

For anyone else that ended up here, setting collections: true in lodash-webpack-plugin will get it working again without pulling in all of lodash.

new LodashModuleReplacementPlugin({
  collections: true
})

All 3 comments

Looks like it was caused by lodash-webpack-plugin

For anyone else that ended up here, setting collections: true in lodash-webpack-plugin will get it working again without pulling in all of lodash.

new LodashModuleReplacementPlugin({
  collections: true
})

Thats good to know! Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigcartmell picture craigcartmell  路  4Comments

tahir-masood1 picture tahir-masood1  路  4Comments

wayofthefuture picture wayofthefuture  路  3Comments

timkraut picture timkraut  路  3Comments

SyedSaifAli picture SyedSaifAli  路  3Comments