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.

Upgrade to `esm` dependency versions

See original GitHub issue

Clear and concise description of the problem

Currently there are some libraries (Vite is using) that only supports esm.

Namely these are currently:

  • node-fetch
  • periscopic
  • strip-ansi

https://github.com/vitejs/vite/blob/00d8c9b7ffcfa2a3f888ef5752f57682cdea91b2/.github/renovate.json5#L32-L35

And execa: https://github.com/vitejs/vite/pull/5784

Suggested solution

I’m not quite sure what we need to do to support these 🤔

Maybe we need also to use package.json’s "type": "module"?

Alternative

No response

Additional context

This also helps to archive #5839

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

How to update project when a dependency switches ...
We are developing a project that uses commonjs. When node-fetch is updated to v3.x, jest complains that:
Read more >
Upgrade your Node app: From CommonJS to ES Modules
Install the latest Node.js version (at least the current LTS) and verify that your app is running smoothly after the update. Commit all...
Read more >
Getting Started with (and Surviving) Node.js ESM
The Node.js ecosystem is shifting towards ESM. ... API changes just to support the latest, ESM-only versions of some of their dependencies.
Read more >
Upgrading Dependencies
This is the process we use to upgrade dependencies. This should approximately once per week to ensure we safely apply all of the...
Read more >
esm
esm is the world's most advanced ECMAScript module loader. This fast, production ready, zero dependency loader is all you need to support ...
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