-
-
Notifications
You must be signed in to change notification settings - Fork 540
Closed
Labels
you can do thisGood candidate for a pull request.Good candidate for a pull request.
Milestone
Description
There are a few errors thrown by node -- and by our copy-pasted node code -- that confuse users. Add these to the troubleshooting page.
For example, when you try to require()
a TS file and it's supposed to be executed as native ESM, the user gets a cryptic ERR_REQUIRE_ESM
. When they try to do the same via import()
instead of require()
-- or node ./index.ts
inside a type: module
directory -- they get ERR_UNKNOWN_FILE_EXTENSION
martinliptak
Metadata
Metadata
Assignees
Labels
you can do thisGood candidate for a pull request.Good candidate for a pull request.