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
The error message for importing from a relative module that's not found is the same as a file that has a .js extension.
π Motivating Example
// index.tsimport{value}from"./values";// By default: implicitly any// With noImplicitAny: \// Could not find a declaration file for module './values'.// '/path/to/repo/values.js' implicitly has an 'any' type. ts(7016)
// values.jsexportconstvalue="";
π» Use Cases
Folks coming in fresh to TypeScript might not know allowJs is off by default.
Perhaps this suggestion text would be helpful?
A .js file exists at that location, but the 'allowJs' compiler option is not enabled.
The text was updated successfully, but these errors were encountered:
Suggestion
π Search Terms
suggest allowJs js jsx extension import 7016
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
The error message for
import
ing from a relative module that's not found is the same as a file that has a.js
extension.π Motivating Example
π» Use Cases
Folks coming in fresh to TypeScript might not know
allowJs
is off by default.Perhaps this suggestion text would be helpful?
The text was updated successfully, but these errors were encountered: