Would probably fail in bundle environment
See original GitHub issueI 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:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top 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 >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
Pull request: https://github.com/flexdinesh/browser-or-node/pull/2
I can confirm that this fails with the Parcel bundler. I get
isNode === true
, even in the browser.