Raynos / mercury

A truly modular frontend framework
http://raynos.github.io/mercury/
MIT License
2.82k stars 142 forks source link

newb question #206

Open brw31415 opened 8 years ago

brw31415 commented 8 years ago

hi, i installed mercury on ubuntu, this way : mkdir project; cd project;npm i mercury; then node project.js and produced this error: hg.app(document.body, Foo({ <- ReferenceError: document is not defined i also cloned it and tried running an example program in a cloned mercury project directory after running npm install , node examples/count.js, but it came back not running with no output to console.

thanks

gcallaghan commented 8 years ago

I think you need to run: npm run examples Take a look at the scripts section of package.json to see the build targets.

brw31415 commented 8 years ago

ok,thanks!

On Fri, Feb 19, 2016 at 11:37 AM, Grant Callaghan notifications@github.com wrote:

I think you need to run: npm run examples Take a look at the scripts section of package.json to see the build targets.

— Reply to this email directly or view it on GitHub https://github.com/Raynos/mercury/issues/206#issuecomment-186291523.

emilbayes commented 8 years ago

@brw31415 I don't know if min-document is supported by Mercury, but that might help you. Note that you are running mercury in node, while most of the exampels are intended to be run in a browser, via something like browserify :) Hope that helps!

brw31415 commented 8 years ago

actually the examples seem to run fine on node.

On Thu, Feb 25, 2016 at 8:49 AM, Emil Bay notifications@github.com wrote:

@brw31415 https://github.com/brw31415 I don't know if min-document https://www.npmjs.com/package/min-document is supported by Mercury, but that might help you. Note that you are running mercury in node, while most of the exampels are intended to be run in a browser, via something like browserify :) Hope that helps!

— Reply to this email directly or view it on GitHub https://github.com/Raynos/mercury/issues/206#issuecomment-188790485.