Class_ReactJs icon indicating copy to clipboard operation
Class_ReactJs copied to clipboard

[ Paths ] Add baseUrl and paths in tsconfig.json and jsconfig.json

Open fdhhhdjd opened this issue 1 year ago • 0 comments

Vietnamese 🇻🇳

Hướng dẫn: tsconfig.json or jsconfig.json

  1. 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.

  2. 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

  1. Create a file named jsconfig.json in the root directory of your project.

  2. Add the following code to your jsconfig.json file:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    }
  }
}

fdhhhdjd avatar Sep 22 '23 14:09 fdhhhdjd