其他分享
首页 > 其他分享> > ts使用@符号路径报红线

ts使用@符号路径报红线

作者:互联网

在tsconfig.json文件添加这几行代码即可

 

    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"],
      "@typings/*": ["src/typings/*"],
      "@components/*": ["src/components/*"],
      "@style/*": ["src/style/*"],
      "@utils/*": ["src/utils/*"],
      "@router/*": ["src/router/*"],
      "@store/*": ["src/store/*"],
    }

 

标签:src,style,typings,路径,ts,components,router,红线,store
来源: https://blog.csdn.net/FUFCY/article/details/123060816