Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version of callsite breaks console-trace #14

Open
dgem opened this issue Jan 30, 2013 · 2 comments
Open

Latest version of callsite breaks console-trace #14

dgem opened this issue Jan 30, 2013 · 2 comments

Comments

@dgem
Copy link

dgem commented Jan 30, 2013

Just setup a new node install and npm installed. It fails on the first log, for example:

console.log("bla");

results in a barf

DEBUG: Starting child process with 'node single.js'
domain.js:66
    throw er;
          ^
ReferenceError: __stack is not defined
    at Object.forEach.console.(anonymous function) [as info] (/Users/dan/code/server/node_modules/console-trace/console-trace.js:43:42)
    at Object.init (/Users/dan/code/server/lib/data_store.js:17:10)
    at Object.start (/Users/dan/code/server/lib/server.js:17:14)
    at Object.<anonymous> (/Users/dan/code/server/single.js:10:8)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
DEBUG: Program node single.js exited with code 1

It looks to me that it's because, 6 days ago, this commit in callsite - tj/callsite@4882cd0 removed the __stack var

Easiest fix looks like to set the callsite dependency to 0.0.1

@numbcoder
Copy link

I have send a pull request to fix this bug.
#17

ethanmick pushed a commit to ethanmick/console-trace that referenced this issue Apr 10, 2014
Without breaking backwards compatibility
@addlistener
Copy link

Is this package still maintained? Yarn install gives me 0.2.1 not 0.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants