Skip to content
This repository was archived by the owner on Apr 4, 2020. It is now read-only.
This repository was archived by the owner on Apr 4, 2020. It is now read-only.

Problem to include arboreal in node #3

@Eskatrem

Description

@Eskatrem

Hi,

I am not sure it's really an issue with arboreal, as I am rather a noob in javascript. If this is the case, please tell me.
Anyway, I would like to play with arboreal on the console on node.js.
I installed the package as described by cloning this repo and then running nmp install.

However, when I want to load that from the console, I get:

var tmp = require("./lib/arboreal")
undefined
tmp
{ [Function: Arboreal] parse: [Function] }
var tree = new Arboreal();
ReferenceError: Arboreal is not defined
at repl:1:16
at REPLServer.self.eval (repl.js:111:21)
at rli.on.e (repl.js:260:20)
at REPLServer.self.eval (repl.js:118:5)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:88:17)
at Interface._onLine (readline.js:199:10)
at Interface._line (readline.js:517:8)
at Interface._ttyWrite (readline.js:735:14)
at ReadStream.onkeypress (readline.js:98:10)
var tree = new tmp.Arboreal();
TypeError: undefined is not a function
at repl:1:12
at REPLServer.self.eval (repl.js:111:21)
at rli.on.e (repl.js:260:20)
at REPLServer.self.eval (repl.js:118:5)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:88:17)
at Interface._onLine (readline.js:199:10)
at Interface._line (readline.js:517:8)
at Interface._ttyWrite (readline.js:735:14)
at ReadStream.onkeypress (readline.js:98:10)

And I can't reproduce the example.

Any pointer would be really appreciated!

Sam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions