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.

Would probably fail in bundle environment

See original GitHub issue

I think Bundlers (like webpack, parcel) define these properties/methods n their own, so i think this will fail in those environments.

const isNode = typeof module !== 'undefined' && typeof module.exports !== 'undefined';

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
swansonteccommented, Jul 9, 2018
1reaction
swansonteccommented, Jul 9, 2018

I can confirm that this fails with the Parcel bundler. I get isNode === true, even in the browser.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUNDLE_PATH environment variable ignored causing all ...
I use the environment variable BUNDLE_PATH to set the gem directory. All spring commands then fail as if no gems are installed requesting...
Read more >
I'm trying to run Bundle Install, what does this error message ...
I'm currently on Chapter 5 of the Ruby on Rails tutorial (3rd edition), and part of this is my fault as I fiddled...
Read more >
Dev environment setup failed on bundle install - Discourse Meta
In the bundle install step, I got an error about openssl, I don't know how to solve this, can someone help me? Here...
Read more >
The best way to manage a Ruby application's gems - Bundler
This magic will disappear from bundler 3, and you will explicitly need to configure it, either through environment variables, application configuration, ...
Read more >
Bundle Exec - LearnHowToProgram.com
In this lesson, we will address a common error that many students run into, both on their personal machines and occasionally the machines...
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