Comments (12)
Not sure. Does anyone face same issue?
I'll try to setup a Windows VM and test on it.
from react-google-maps.
First, let me say that npm run build
does work.
But the other (more important ones) fail (npm run dev
for example).
If you have a Windows VM you can try this and you will see what I mean.
You may want to read this at the section about Windows:
http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/
"If you really need to have Windows support, it does not support rm - luckily there is rimraf which is a cross-compatible tool to do the same thing"
But the "rm" is not the problem actually, problems start when the "webpack" part runs. I will look at it but I am not an expert, you will immediately understand the problem (and possibly fix it) if you can run it on a Windows VM.
Thanks.
from react-google-maps.
Just the 1st error that I get. Also see the npm-debug.log here: https://gist.github.com/af7/95689af32f86d23c8086
{ file: 'E:/Repositories of Code/react-google-maps/examples/gh-pages/node_modules/bootstrap-sass/assets
/stylesheets/bootstrap\mixins_grid.scss' }
TypeError: tmp/server.js
--------------------------------------------------------------------------------options must be an obje
ct
at TypeError (native)
at Object.exports.createScript (vm.js:44:10)
at module.exports (E:\Repositories of Code\react-google-maps\examples\gh-pages\node_modules\eval\ev
al.js:55:8)
at IsomorphicReactPluginFactory.evaluate (E:\Repositories of Code\react-google-maps\examples\gh-pag
es\IsomorphicReactPluginFactory.js:56:12)
at IsomorphicReactPluginFactory.runCompilation (E:\Repositories of Code\react-google-maps\examples\
gh-pages\IsomorphicReactPluginFactory.js:68:32)
at IsomorphicReactPluginFactory.receivedClientAssets (E:\Repositories of Code\react-google-maps\exa
mples\gh-pages\IsomorphicReactPluginFactory.js:33:10)
at ClientPlugin. (E:\Repositories of Code\react-google-maps\examples\gh-pages\Isomorphic
ReactPluginFactory.js:97:24)
at Tapable.applyPluginsAsync (E:\Repositories of Code\react-google-maps\examples\gh-pages\node_modu
les\webpack\node_modules\tapable\lib\Tapable.js:71:13)
at Tapable.Compiler.emitAssets (E:\Repositories of Code\react-google-maps\examples\gh-pages\node_mo
dules\webpack\lib\Compiler.js:225:7)
at Tapable. (E:\Repositories of Code\react-google-maps\examples\gh-pages\node_modules\we
bpack\lib\Compiler.js:183:10)
--------------------------------------------------------------------------------module.exports=function
(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o
.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n)
{"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule"
,{value:!0});var o=n(3),a=(r(o),n(13)),i=r(a);t["default"]=i["default"],e.exports=t["default"]},functio
n(e,t,n){e.exports=require("react/addons")},function(e,t,n){"use strict";function r(e){return e&&e.__es
Module?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),a=r(o),i=n(24),s=r(
i),l=n(25),c=r(l),u=n(8),p=r(u),f=n(27),d=r(f),g=n(28),h=r(g),m=n(29),v=r(m);t.GoogleMaps=a["default"],
t.Circle=s["default"],t.DirectionsRenderer=c["default"],t.InfoWindow=p["default"],t.Marker=d["default"]
from react-google-maps.
@af7 Did you try it with node 0.10
or 0.12
? I believe current master
having some issue with 0.12
. See #49
from react-google-maps.
I am using node v0.12.3 and I can report this for Windows:
I run the following commands sequentially:
npm run build
: works fine 👍
npm run build_client
: works fine, with many warnings from UglifyJs (I assume these are just normal? or not?)
npm run dev
: works fine, no errors (and no warnings from UglifyJS), but I get the following result on E:\Repositories of Code\react-google-maps\public
:
??? I assume this is not normal, correct?
from react-google-maps.
Could you just try visiting localhost:8080
?
from react-google-maps.
Hi, I get similar results:
This is localhost:8080
:
And this is the local file structure that is created:
from react-google-maps.
Please try #73, thanks!
from react-google-maps.
Here's how I got the example to compile and run on Windows. You may need to install webpack
and/or webpack-dev-server
via npm install -g
to get the commands to run properly.
npm install
cd examples/gh-pages
npm install
webpack -d
webpack-dev-server -d
from react-google-maps.
@radnor so npm run dev
or npm start
won't work on windows?
from react-google-maps.
Correct, as rm -rf
does not work in windows. Implementing the npm clean
task with rimraf should solve this issue.
from react-google-maps.
@radnor thanks to look into this. I didn't notice that even rm
would be an issue though LOL. Would you mind to open PR for this?
from react-google-maps.
Related Issues (20)
- how to add button re center on map HOT 1
- Problems while implementing Content Security Policy HOT 1
- Polygon not being drawn on the map HOT 1
- CWE-601 Security Vulnerability found in one of the transitive dependencies HOT 1
- Legacy context API has been detected within a strict-mode tree. HOT 1
- AutoComplete Default Value
- Check this use 'window'
- Error when installing HOT 3
- Could not resolve dependency: npm ERR! peer react@"^16 || ^17" from [email protected]
- Problem in Installation HOT 2
- I can not push custom control button to the map
- More than 700 re renderings HOT 1
- Is there any benefits to using MarkerClusterer, rather than simply using Markers?
- Best Way To Style Marker Labels?
- KMlLayer 2d, 3d kmz file or kml file highlighted layer not showing
- f.setPosition is not a function
- How can I get the DOM element for Marker?
- disable map zoom when DirectionsRenderer redraws the path
- Upgrade jQuery dependency inside scriptjs package. HOT 1
- Update needed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-google-maps.