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
I use NuGet to get all type definitions I need. How to stop use definitions from this folder for IntelliSense?
Expected behavior:
I do not use requirejs module, so I expect that IntelliSense does not show this error
Actual behavior:
I get error:
Error TS2403 (TS) Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.
The text was updated successfully, but these errors were encountered:
@RyanCavanaugh any idea? I'm guessing something is including the Node.js definition for the global require, and something is includes the requirejs global definition for require.
Do you have JavaScript & TypeScript source files included directly in your project? Are you using a tsconfig.json file anywhere in the project?
TypeScript Version: 2.3
Visual Studio Version: 15.4.4
When I open my solution, Typescript shows error in this file:
I use NuGet to get all type definitions I need. How to stop use definitions from this folder for IntelliSense?
Expected behavior:
I do not use
requirejs
module, so I expect that IntelliSense does not show this errorActual behavior:
I get error:
The text was updated successfully, but these errors were encountered: