GithubHelp home page GithubHelp logo

Comments (12)

tomchentw avatar tomchentw commented on June 24, 2024

Not sure. Does anyone face same issue?
I'll try to setup a Windows VM and test on it.

from react-google-maps.

afilp avatar afilp commented on June 24, 2024

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.

afilp avatar afilp commented on June 24, 2024

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.

tomchentw avatar tomchentw commented on June 24, 2024

@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.

afilp avatar afilp commented on June 24, 2024

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:

image

??? I assume this is not normal, correct?

from react-google-maps.

tomchentw avatar tomchentw commented on June 24, 2024

Could you just try visiting localhost:8080?

from react-google-maps.

afilp avatar afilp commented on June 24, 2024

Hi, I get similar results:

This is localhost:8080:

image

And this is the local file structure that is created:

image

from react-google-maps.

tomchentw avatar tomchentw commented on June 24, 2024

Please try #73, thanks!

from react-google-maps.

radnor avatar radnor commented on June 24, 2024

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.

tomchentw avatar tomchentw commented on June 24, 2024

@radnor so npm run dev or npm start won't work on windows?

from react-google-maps.

radnor avatar radnor commented on June 24, 2024

Correct, as rm -rf does not work in windows. Implementing the npm clean task with rimraf should solve this issue.

from react-google-maps.

tomchentw avatar tomchentw commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.