-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 2.4.1
Code
{
"compilerOptions": {
"sourceMap": false,
"outDir": "./dist/",
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"declaration": true,
"lib": ["es2016", "es7"]
},
"include": [
"./src/**/*"
]
}+-- project
+-- node_modules
| + @types
| | + react
| | + react-router
| | + ...
| + ...
|
+-- frontend
| + MyReactApp.tsx
| + tsconfig.json
| + ...
|
+-- subproject
+ ReactThingy.ts
+ tsconfig.json
+ ...
Expected behavior:
My TS files should work fine
Actual behavior:
Instead, typescript, will look for definitions in node_modules in parent folders, so it will try to compile using @types/react-router and so. Thus, failing to compile.
brunolemos, anisabboud and worthy7
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug