Skip to content

Instantly share code, notes, and snippets.

@arty-name
Last active January 18, 2023 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arty-name/c30dfd807fcbfa4d51db26fe5dc5da50 to your computer and use it in GitHub Desktop.
Save arty-name/c30dfd807fcbfa4d51db26fe5dc5da50 to your computer and use it in GitHub Desktop.
ERR_REQUIRE_ESM with `parcel watch` and ESM-only dependencies
import { got } from 'got';
console.log(got);
{
"main": "index.js",
"dependencies": {
"got": "^12.5.3",
"parcel": "^2.8.2"
}
}
@arty-name
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment