We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { decodeNamedCharacterReference } from "https://esm.sh/decode-named-character-reference"; console.log(decodeNamedCharacterReference("amp"));
After running deno run I got this:
deno run
error: Uncaught ReferenceError: document is not defined at https://cdn.esm.sh/v64/[email protected]/deno/decode-named-character-reference.js:2:7
Perhaps the browser in the exports field of package.json has been resolved.
browser
package.json
// package.json { ..., "type": "module", "main": "index.js", "types": "index.d.ts", "exports": { ".": { "deno": "./index.js", "react-native": "./index.js", "worker": "./index.js", "browser": "./index.dom.js", "default": "./index.js" } } }
The text was updated successfully, but these errors were encountered:
3802156
fixed in v65
Sorry, something went wrong.
No branches or pull requests
Failing module
Error message
After running
deno run
I got this:Additional info
Perhaps the
browser
in the exports field ofpackage.json
has been resolved.The text was updated successfully, but these errors were encountered: