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.

I’m trying to use this in my Polymer app, so I can’t use the regular Node package, but when I try to import this as <script src="../../../node_modules/apisauce/dist/apisauce.js"></script> it throws me the following error on browser:

Uncaught ReferenceError: exports is not defined
    at apisauce.js:1

Any thoughts on making this compatible with the browser?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
skellockcommented, Dec 20, 2017

I’m going to back pedal a bit on this because I don’t have a use case for this personally.

Contributions are more than welcome. I’d love to support vanilla browsers, but I don’t know how. Besides packagers are now so prevalent… and nowadays zero config is the buzz word du jour.

1reaction
AlexHenkelcommented, Jul 5, 2017

I’ve tried with almost all versions, but it seems that all of them depend on Object.defineProperty(exports,"__esModule",{value:!0}) which is not supported by any browser

Read more comments on GitHub >

github_iconTop Results From Across the Web

Statcounter Global Stats - Browser, OS, Search Engine ...
Tracks the Usage Share of Search Engines, Browsers and Operating Systems including Mobile from over 5 billion monthly page views.
Read more >
Browser Statistics - W3Schools
2022 Chrome Edge Firefox Safari Opera October 79.9 % 8.1 % 5.2 % 4.2 % 1.7 % September 80.9 % 7.8 % 5.2 % 3.7...
Read more >
Usage share of web browsers - Wikipedia
Chrome, 65.87%, 64.67 % ; Safari, 18.61%, 19.06% ; Edge, 4.13%, 4.10% ; Firefox, 3.26%, 3.66% ...
Read more >
"Can I use" usage table - CanIUse
Browser usage table, based on data from StatCounter GlobalStats. Information for mobile versions is extrapolated from other sources.
Read more >
85+ Web Browser Market Share & Usage Statistics (2022)
At 48.51% Google Chrome is the most popular used across all platforms in terms of US browser market share. In second place is...
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