Git Product home page Git Product logo

node-dom's Issues

Error

TypeError: Object # has no method 'getComputedStyle'
at Object.offsetWidth (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:1354:38)
at Object.core.resourceLoader.download (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:316:18)
at Object.core.resourceLoader.load (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:239:11)
at Object.core.Node.insertBefore (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:714:24)
at Object.core.Node.appendChild (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:784:16)
at Object.core.HTMLDocument.setTree (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:2089:26)
at Object.core.HTMLDocument.setTree (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:2134:21)
at Object.core.HTMLDocument.setTree (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:2134:21)
at Object.core.HTMLDocument.setTree (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:2134:21)
at Object.core.HTMLDocument.setTree (/home/solly/phjs/scripts/node_modules/node-dom/lib/browser/index.js:2134:21)

Cannot run example code

$ node simple.js
/project/node_modules/node-dom/lib/dom.js:6
Context = process.binding('evals').Context,
^

Error: No such module: evals
at Error (native)
at Object. (/Applications/MAMP/htdocs/wit.ai/project/node_modules/node-dom/lib/dom.js:6:20)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Applications/MAMP/htdocs/wit.ai/project/simple.js:2:11)
at Module._compile (module.js:434:26)

htmlparser error in simple.js

Tried to execute a simple sample, after following the advice on the issue posted by staminna and I am stuck here:

$ node simple.js --url=http://www.extractwidget.com/nodejs/test/testcastorama.html       
htmlparser
/home/globallink/simple.js:12
    var url = URL.parse(args.url);
                        ^

ReferenceError: args is not defined
    at Object.<anonymous> (/home/globallink/simple.js:12:25)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3

so far my html parser is module is installed correctly among other needed dependencies.

Local Modules

/home/localuser
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Global Modules

Could you please help me with this one?

Thanks!

Mariano

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.