You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I get following error as output in the terminal
> deno main.ts
error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".
Specifier: file:///<path>/data.json
at file:///<path>/main.ts:1:18
Requested change
I had to search to find the link which shows the solution with an example, https://docs.deno.com/examples/importing-json/ which I expect to be part of the error output in the terminal.
> deno main.ts
error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".
Refer: https://docs.deno.com/examples/importing-json/
Specifier: file:///<path>/data.json
at file:///<path>/main.ts:1:18
Could something like this be added for all known errors/warnings. Thanks.
The text was updated successfully, but these errors were encountered:
Issue
I have the following code,
And I get following error as output in the terminal
Requested change
I had to search to find the link which shows the solution with an example, https://docs.deno.com/examples/importing-json/ which I expect to be part of the error output in the terminal.
Could something like this be added for all known errors/warnings. Thanks.
The text was updated successfully, but these errors were encountered: