Class_ReactJs
Class_ReactJs copied to clipboard
[ Paths ] Add baseUrl and paths in tsconfig.json and jsconfig.json
Vietnamese 🇻🇳
Hướng dẫn: tsconfig.json or jsconfig.json
-
Tạo một tệp có tên
jsconfig.json
trong thư mục gốc của dự án của bạn. -
Thêm mã sau vào tệp
jsconfig.json
của bạn:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
English 🏴
Guide: tsconfig.json or jsconfig.json
-
Create a file named
jsconfig.json
in the root directory of your project. -
Add the following code to your
jsconfig.json
file:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}