-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
TypeScript json import in with-typescript example doesn't work even in js files #9883
Comments
I did not find any issue. It worked with
Here is the repo i created. |
here's a reproduction repository Message:
|
@talentlessguy path is incorrect. correct path is |
ok, my bad. closing the issue |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
When I try to import json in a js file, I get resolve error
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
create-next-app --example with-typescipt app
import { version } from '../package.json'
)Expected behavior
it should import json without any problems because json resolution is set to true by default in
tsconfig.json
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
typescript version: 3.7.4
The text was updated successfully, but these errors were encountered: