我正在尝试读取角7组件中的自定义文件,但是当服务器重新启动时,当组件ts文件中没有错误时,它会失败。
错误:
app/zontify-components/zontify-dynamic-field.directive.ts(5,29):error TS2306:文件'D:/Phython/zontify/Purchased/webmin/angular-7/src/src/app/field-interface.ts‘不是一个模块。app/zontify-components/zontify-select/zontify-select.component.ts(3,29):error TS2307:无法找到模块‘src/app/field-接口’。app/zontify-lead/zontify-lead.component.ts(10,29):error TS2306:文件'D:/Phython/zontify/Purchased/webmin/angular-7/src/src/app/field-interface.ts‘不是一个模块。
请让我知道我做错了什么?我对角7还不熟悉。
接口目录:
项目> app >字段-interface.ts
发布于 2019-04-16 10:53:08
找到解决办法了..。我们需要使用文件的相对路径,而不是绝对路径.
https://stackoverflow.com/questions/55691071
复制相似问题