Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

tsconfig removes the paths setting

$
0
0

I use react through CRA with typescript. Here is my config from tsconfig.json

 {"compilerOptions": {"target": "es5","lib": ["dom","dom.iterable","esnext"        ],"baseUrl": ".","paths": {"my-lib": ["./node-modules/my-lib/src"            ],"my-lib/*": ["./node_modules/my-lib/src/*"            ]        },"allowJs": true,"skipLibCheck": true,"esModuleInterop": true,"allowSyntheticDefaultImports": true,"strict": true,"forceConsistentCasingInFileNames": true,"module": "esnext","moduleResolution": "node","resolveJsonModule": true,"isolatedModules": true,"noEmit": true,"jsx": "react"      },"include": ["src"      ]    }

However, after running the npm start script, the" paths "setting automatically disappears from the config.

Please help me solve this problem. Thanks.


Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>