ts-node无法使用非相对路径导入
需要:
npm i tsconfig-paths
- 在tsconfig.json中加入:
1 | "compilerOptions": { |
参见:https://typestrong.org/ts-node/docs/paths/
来源:https://github.com/TypeStrong/ts-node/issues/634
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Decmoe47's Blog!
评论