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.

"TypeError: exists is not a function"

See original GitHub issue

When ever I try to run a script I bundled with browserify it gives me the error:

Uncaught TypeError: exists is not a function
    at Function.getRoot (strobe_bundle.js:7582)
    at bindings (strobe_bundle.js:7484)
    at Object.122.../util (strobe_bundle.js:42457)
    at s (strobe_bundle.js:1)
    at strobe_bundle.js:1
    at Object.<anonymous> (strobe_bundle.js:42033)
    at Object.118../darwin (strobe_bundle.js:42036)
    at s (strobe_bundle.js:1)
    at strobe_bundle.js:1
    at Object.128../bindings/auto-detect (strobe_bundle.js:42897)
getRoot @ strobe_bundle.js:7582
bindings @ strobe_bundle.js:7484
122.../util @ strobe_bundle.js:42457
s @ strobe_bundle.js:1
(anonymous) @ strobe_bundle.js:1
(anonymous) @ strobe_bundle.js:42033
118../darwin @ strobe_bundle.js:42036
s @ strobe_bundle.js:1
(anonymous) @ strobe_bundle.js:1
128../bindings/auto-detect @ strobe_bundle.js:42897
s @ strobe_bundle.js:1
(anonymous) @ strobe_bundle.js:1
detect @ strobe_bundle.js:14766
Board @ strobe_bundle.js:15016
140.johnny-five @ strobe_bundle.js:44167
s @ strobe_bundle.js:1
e @ strobe_bundle.js:1
(anonymous) @ strobe_bundle.js:1

In console, can anyone help?

Here is my original unbundled code `var five = require(“johnny-five”), board = new five.Board();

board.on(“ready”, function() { // Create an Led on pin 13 var led = new five.Led(13);

// Strobe the pin on/off, defaults to 100ms phases led.strobe(); });`

I put it in a pastebin if that helps https://pastebin.com/bu1r8iFg Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
realisationcommented, Aug 8, 2018

I’ve gotten this problem when trying to bundle an application of mine with browserify. However, I don’t use anything that refers to c++ bindings. If I recall correctly, leveldb is supposed to run in the browser. Must be missing something here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: exists is not a function #1501 - GitHub
I just imported sharp in my react project then it returns this error Uncaught TypeError: exists is not a function Function.
Read more >
exists is not a function when attempting to use serial port in ...
Uncaught TypeError: exists is not a function when attempting to use serial port in TypeScript ; require("serialport") ; var socketServer; var ; var ......
Read more >
Uncaught TypeError: exists is not a function - Google Groups
when working with modules Ceylon from JavaScript the program is running normally but in the console occurs error: Uncaught TypeError: exists is not...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
TypeError: exists not a function - help - Meteor forums
I just started getting this error, it's breaking my routing but I'm not sure where I need to start looking for troubleshooting it,...
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