简体   繁体   English

找不到模块Ionic TypeScript Atom项目

[英]Cannot find module Ionic TypeScript Atom project

Anyone know why I'm getting the two errors below please? 有人知道为什么我会出现以下两个错误吗?

  • Cannot find module ' ./services/TodosService ' 找不到模块' ./services/TodosService '
  • Cannot find module ' ./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: 我尝试过的事情:

  • ../../app/ ../../app/
  • / /
  • app/ 应用程序/

Thanks! 谢谢!

在此处输入图片说明

应该尝试一下:

import {TodosService} from '../../services/TodosService';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM