这是显示问题的Github MCVE。npm run compile显示错误。
我正在尝试这样做:
import {Todo} from '@test';
但这还没有解决。
src / index.ts:1:20-错误TS2307:找不到模块'@test'。
我paths进去了tsconfig.json。
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */
"paths": {
"@fs/": ["src/"],
"@test/": ["test/"]
}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
有什么想法吗?
回首忆惘然
烙印99
相关分类