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.

error "exports" is not defined

See original GitHub issue

getting error “exports is not defined” at @apollo/client/link/ws/index.js:

exports._type = "esm";

I see that upgrading @apollo/client to latest version (v3.6.9) fixes this by removing this line. I’m maintaining Bit, a build tool for other developers. So I want to explain to them why they need to upgrade apollo.

  • what version of @apollo/client fixed it?
  • is there any related issue? I can’t find any information about it

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpvajdacommented, Jul 11, 2022

@KutnerUri it shouldn’t come back as an issue, but if it does, please let us know. Given this may be hard to trace down, due to the age of the change, I’m going to mark this as done for now.

1reaction
KutnerUricommented, Jul 11, 2022

thanks, I’m ok. I just wanted to figure this out, and maybe ensure it doesn’t return.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript ReferenceError: exports is not defined
I had the error "exports is not defined" coming from an imported NPM module. Changing my typescript config did nothing as I had...
Read more >
ReferenceError: exports is not defined in TypeScript | bobbyhadz
To solve the "Uncaught ReferenceError: exports is not defined", add a script tag that defines an exports variable, e.g. <script>var exports = {};</script>...
Read more >
How to fix ReferenceError: exports is not defined TypeScript
If you are getting the error for code that runs in the browser, try defining a global exports variable above the script tags...
Read more >
Uncaught ReferenceError: exports is not defined : r/typescript
Getting this error for some dumb reason i'm sure. Uncaught ReferenceError: exports is not defined. at app.js:2. (anonymous) @ app.js:2.
Read more >
Uncaught ReferenceError: exports is not defined #71 - GitHub
I'm running into that same runtime error (also using Rails + webpacker but no Typescript). I'm importing the yup resolver rather than the...
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