From 70e8b39774e32d79ae054346719088cc1a612937 Mon Sep 17 00:00:00 2001 From: Jimmy <1064425721@qq.com> Date: Fri, 30 Dec 2022 10:52:30 +0800 Subject: [PATCH] fix : alias invalid --- tsconfig.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 3d0a51a..0bc7d9a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,13 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react-jsx", + "baseUrl": "./", + "paths": { + "@/*": [ + "src/*" + ] + }, }, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }]