Skip to content
New issue

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

Support json media type for importing modules #10748

Closed
wrnrlr opened this issue May 23, 2021 · 1 comment
Closed

Support json media type for importing modules #10748

wrnrlr opened this issue May 23, 2021 · 1 comment
Labels
duplicate a duplicate of another issue

Comments

@wrnrlr
Copy link

wrnrlr commented May 23, 2021

Dunno if this makes sense in a Deno context, but I've seen people do things like

import {version} from '../package.json'

but this fails:

error: An unsupported media type was attempted to be imported as a module.
  Specifier: https://raw.githubusercontent.com/wrnrlr/as-bind/master/package.json
  MediaType: Json

Same failure when importing local copy of same code.

@lucacasonato
Copy link
Member

Duplicate of #7623

@lucacasonato lucacasonato added the duplicate a duplicate of another issue label May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants