google-map-react / old-examples

Examples for google-map-react component.
http://google-map-react.github.io/google-map-react/map/main/
357 stars 316 forks source link

Cannot read property '_' of undefined #32

Closed sydkaz closed 6 years ago

sydkaz commented 6 years ago

Cant get it to work on windows 10 getting the following errors.

Error E:\downloads\downloads\google-map-react-examples-master\nodemodules\underscore\underscore.js:17 var previousUnderscore = root.; ^

TypeError: Cannot read property '_' of undefined at E:/downloads/downloads/google-map-react-examples-master/node_modules/underscore/underscore.js:15:32 at Object. (E:/downloads/downloads/google-map-react-examples-master/node_modules/underscore/underscore.js:1548:3) at Module._compile (module.js:570:32) at normalLoader (E:\downloads\downloads\google-map-react-examples-master\node_modules\babel-core\lib\api\register\node.js:199:5) at Object.require.extensions.(anonymous function) [as .js] (E:\downloads\downloads\google-map-react-examples-master\node_modules\babel-core\lib\api\register\node.js:216:7) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

Config $ npm -version 5.6.0

$ node --version v6.11.2

I have tried to run it using Cygwin, CMD as admin both of them don't seem to be working. Have tried to install webpack-dev-server separately to start "webpack-dev-server" which is not working either.

Has anyone got any idea whats wrong with this?

sydkaz commented 6 years ago

Managed to get this working after adding /node_modules/ as mentioned in here https://stackoverflow.com/questions/39301399/underscore-gives-error-when-bundling-with-webpack