Skip to content

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

Closed
@Thaina

Description

@Thaina

Make a json file

{
    "season": 1
}

Code

var test = require("test.json");

result

untitled-1

expect

untitled-2

Metadata

Metadata

Assignees

Labels

FixedA PR has been merged for this issueHelp WantedYou can do thisSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions