create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

TypeScript - absolute path doesn't work

Open bdavid68 opened this issue 8 years ago • 1 comments

Is this a bug report?

Not Sure

Screenshot

2018-11-09_2206

It removes baseUrl and paths automatically from my project.

tsconfig.json

{
  "compilerOptions": {
    "outDir": "build/dist",
    "module": "esnext",
    "target": "es5",
    "lib": ["es6", "dom"],
    "sourceMap": true,
    "allowJs": true,
    "jsx": "react",
    "moduleResolution": "node",
    "rootDir": "src",
    "forceConsistentCasingInFileNames": true,
    "noImplicitReturns": true,
    "noImplicitThis": false,
    "noImplicitAny": false,
    "strictNullChecks": true,
    "suppressImplicitAnyIndexErrors": true,
    "noUnusedLocals": true,
    "downlevelIteration": true,
    "typeRoots": ["node_modules/@types", "types"],
    "baseUrl": "./",
    "paths" : {
      "src/*": ["./src/*"]
    }
  },
  "exclude": [
    "node_modules",
    "build",
    "scripts",
    "acceptance-tests",
    "webpack",
    "jest",
    "src/setupTests.ts"
  ]
}

bdavid68 avatar Nov 09 '18 12:11 bdavid68

See #5692, #5645, #5118.

tddyco avatar Nov 09 '18 13:11 tddyco