Typescript Path Alias 設定及錯誤解決
# 設置 @ 路徑別名
到 tsconfig.json 加入 compilerOptions 的 paths 設定:
baseUrl:設定為 .,確保路徑別名從此目錄開始計算。
paths:定義別名,@components/_ 代表 src/components/_。
{
"compilerOptions": {
"baseUrl": ".", // 設定為專案根目錄
"paths": {
&
more...



