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

In JS, importing JSON should not give an error #23712

Closed
sandersn opened this issue Apr 26, 2018 · 2 comments
Closed

In JS, importing JSON should not give an error #23712

sandersn opened this issue Apr 26, 2018 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@sandersn
Copy link
Member

We don't have to give a good type, but there should not be an error.

Search terms: import require json

const version = require('./package.json').version

Expected behavior:
No error and maybe even version: string

Actual behavior:
Error and version: any.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 26, 2018

Duplicate of #7071. Should be fixed by #22167

@mhegazy mhegazy added the Duplicate An existing issue was already created label Apr 26, 2018
@sandersn
Copy link
Member Author

OK, I updated #7071's title to be searchable.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants