我正在尝试使用Path Mapping for Cloud Functions,但是当我使用自定义路径时,import * as b from '@custom-path/barrel'我会在tslint上获得隐式导入的错误.如果我禁用此规则并尝试部署,则会收到以下错误:
Error parsing triggers: Cannot find module '@custom-path'
"baseUrl": "../",
"paths": {
"@be-utils/*": ["functions/src/utils/*"],
}
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?
如果没有,我如何使用云功能的路径映射?谢谢.
如何将TS路径映射与Firebase Cloud函数一起使用?我尝试没有成功:
"baseUrl": ".",
"paths": {
"@custom-path/*": ["src/utils/*"],
"@other-path/*": ["../other/path/*"]
}
Run Code Online (Sandbox Code Playgroud)