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
given a project that has as dev dependency @types/modernizr, which has a global declaration such as declare var Modernizr: ModernizrStatic;
While tsc and vs-code pick it up fine, this plugin fails to find it:
Cannot find name 'Modernizr'.
console.log(Modernizr.hiddenscroll);
(I assume because the Modernizr module itself is not imported, which shouldn't need to)
If I add import "modernizr"; then compilation will be ok, but it will fail in runtime since that module of course doesn't exist
If I add import "@types/modernizr"; compilation will fail since type declaration "modules" cannot be imported
The text was updated successfully, but these errors were encountered:
given a project that has as dev dependency
@types/modernizr
, which has a global declaration such asdeclare var Modernizr: ModernizrStatic;
While tsc and vs-code pick it up fine, this plugin fails to find it:
(I assume because the Modernizr module itself is not imported, which shouldn't need to)
If I add
import "modernizr";
then compilation will be ok, but it will fail in runtime since that module of course doesn't existIf I add
import "@types/modernizr";
compilation will fail since type declaration "modules" cannot be importedThe text was updated successfully, but these errors were encountered: