当我尝试在我的ionic2项目中使用tsc时,我在打字稿文件上收到以下错误.
错误:
TS2307:找不到模块’离子/离子’
代码:
import {Page} from "ionic/ionic" //error happens on this line @Page({ templateUrl: 'app/list/list.html',}) export class ListPage { constructor() {} }
{ "compilerOptions": { "target": "ES5","module": "commonjs","sourceMap": true,"isolatedModules": true,"noEmitOnError": false,"rootDir": ".","emitDecoratorMetadata": true,"experimentalDecorators": true },"compileOnSave": false }
我的npm -g列表:
[email protected] [email protected] [email protected] [email protected]
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。