index.js:4 Uncaught ReferenceError: Console is not defined
See original GitHub issueHi, 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:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
It works now! Perfect! Thanks a bunch for taking the time.