create-react-app
create-react-app copied to clipboard
TypeScript - absolute path doesn't work
Is this a bug report?
Not Sure
Screenshot

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"
]
}
See #5692, #5645, #5118.