You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugConfirmed bugs in the repository (i.e. linter bugs), NOT browser implementation bugs.infraInfrastructure issues (npm, GitHub Actions, releases) of this project
From our discussions regarding a complete internal ESM conversion, I'd been informed that JSON cannot be imported directly in ESM. What happens if you import the module's defaults?
importbcdfrom"@mdn/browser-compat-data";
queengooborg
added
bug
Confirmed bugs in the repository (i.e. linter bugs), NOT browser implementation bugs.
infra
Infrastructure issues (npm, GitHub Actions, releases) of this project
info needed
This needs more information to review or act on.
labels
Sep 4, 2021
I'm happy to help! I admittedly don't know TypeScript all that well (I've never used it, heh), so I couldn't really say what's causing the issue. The good news is that work is being done to create ESM-native bindings, so you won't have to leave that config parameter on. Check out #12169 for more details on that!
bugConfirmed bugs in the repository (i.e. linter bugs), NOT browser implementation bugs.infraInfrastructure issues (npm, GitHub Actions, releases) of this project
If you try to
you will see the error
Or should I be trying to cast the data to another type?
The text was updated successfully, but these errors were encountered: