[英]Cannot find module Ionic TypeScript Atom project
Anyone know why I'm getting the two errors below please? 有人知道为什么我会出现以下两个错误吗?
./services/TodosService
' ./services/TodosService
' ./objects/todo
' ./objects/todo
' The component ' my-todos.ts
' is in the highlighted ' Pages ' directory. 组件“
my-todos.ts
”位于突出显示的“ Pages ”目录中。
The two problematic files are in the ' objects
' and ' services
' directories. 这两个有问题的文件位于“
objects
”和“ services
”目录中。
Things I've tried: 我尝试过的事情:
Thanks! 谢谢!
应该尝试一下:
import {TodosService} from '../../services/TodosService';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.