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
Expected behavior:
This is what I get in VS Code in plain js files:
Actual behavior:
However, the module is not resolved in ts files:
Probably this is intended and my use case is a very special one.
However, typescripts repository description still says:
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
In this case, typescript has better support for require in js than in ts which is a little bit confusing considering typescript being a superset of javascript.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.4.0-rc
Search Terms: require, intellisense
Typescript does not resolve modules of require expressions as it does in plain js files.
Code
Expected behavior:
This is what I get in VS Code in plain js files:
Actual behavior:
However, the module is not resolved in ts files:
Probably this is intended and my use case is a very special one.
However, typescripts repository description still says:
In this case, typescript has better support for
require
injs
than ints
which is a little bit confusing considering typescript being a superset of javascript.The text was updated successfully, but these errors were encountered: