Last active
January 18, 2023 12:57
-
-
Save arty-name/c30dfd807fcbfa4d51db26fe5dc5da50 to your computer and use it in GitHub Desktop.
ERR_REQUIRE_ESM with `parcel watch` and ESM-only dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { got } from 'got'; | |
console.log(got); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "index.js", | |
"dependencies": { | |
"got": "^12.5.3", | |
"parcel": "^2.8.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parcel-bundler/parcel#8774