Khi cố gắng sử dụng tsc
với dự án ionic2 của tôi, tôi nhận được lỗi sau trên tệp bản ghi.TS2307: Không thể tìm thấy mô-đun 'ionic/ionic'
Các Lỗi: TS2307: Cannot find module 'ionic/ionic'
Bộ luật:
import {Page} from "ionic/ionic" //error happens on this line
@Page({
templateUrl: 'app/list/list.html',
})
export class ListPage {
constructor() {}
}
tsconfig.json My file:
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"sourceMap": true,
"isolatedModules": true,
"noEmitOnError": false,
"rootDir": ".",
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"compileOnSave": false
}
NPM danh sách -g của tôi:
[email protected]
[email protected]
[email protected]
[email protected]
Cảm ơn bạn lần nữa! Theo dõi vấn đề. – prolink007
Liên kết đã chết :( – Oli