question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

index.js:4 Uncaught ReferenceError: Console is not defined

See original GitHub issue

Hi, I want to start off by saying: nice work! I tried it on the project page and it is just what I was looking for.

But, I can’t get it to work properly with browserify (installed it through npm "console.js": "^1.1.0",), it tries to load the index.js and I get the error below (the first part is in my code, but the second is in console.js.)

Uncaught TypeError: Console is not a constructor
    at Object.192../game.js (index.js:8)
    at s (_prelude.js:1)
    at e (_prelude.js:1)
    at _prelude.js:1
192../game.js @ index.js:8
s @ _prelude.js:1
e @ _prelude.js:1
(anonymous) @ _prelude.js:1

index.js:4 Uncaught ReferenceError: Console is not defined
    at window.onload (index.js:4)
window.onload @ index.js:4

I’m on OS X 10.11.5, Chrome Version 55.0.2883.95 (64-bit)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amiocommented, Jan 9, 2017

It’s not a CommonJS module, so you cannot require it by now.

But sure, it should support being required as a module 😃 I’ll add this to TODO list.

0reactions
ironchestgamescommented, Jan 14, 2017

It works now! Perfect! Thanks a bunch for taking the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: Console is not defined - Stack Overflow
I am working on a bingo game with Meteor. I am now getting an error and since it is in the JS file...
Read more >
What does the error (ReferenceError: Console is not defined ...
In general, a reference error means that you used a word that JavaScript didn't recognize. It's neither a pre-existing part of the JavaScript...
Read more >
Uncaught ReferenceError: Console is not defined (?!) (Example)
I'm trying to use myscript.js within a basic website ("Programming.html") that is in the same directory. In the console, "Uncaught ...
Read more >
Uncaught exception: ReferenceError: console is not defined
While writing codes in javascript on Mongoshell , I am getting the above error. Please look into it.
Read more >
[SOLVED] Uncaught ReferenceError: Moralis is not defined?
... following error message in my browser console for a few hours now: Uncaught ReferenceError: Moralis is not defined at app.js: 4 This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found