0
- NPM安装-g离子
- 离子开始pixiApp空白--v2
- CD pixiApp
- NPM安装
- NPM安装pixi.js --save (版本4.1.0)
- NPM安装--save @类型/ pixi.js (我知道这是高清类型V3 :()
- 我取代pixiApp的内容\ node_modules \ @types \ pixi.js \ index.d.ts通过https://github.com/pixijs/pixi-typescript/blob/v4.x/pixi.js.d.ts
- 在默认home.ts关的应用程序,我添加以下代码:
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import * as PIXI from 'pixi.js';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController) {}
ngOnInit() {
PIXI.autoDetectRenderer(800, 600, {backgroundColor: 0x1099bb});
}
}
- 最后,我启动了命令的应用程序:离子服务
结果KO
[16时56分52秒]汇总:导出 'autoDetectRenderer' 不被定义的 'd:\实验室\ ionic2 \ pixiApp的\ src \网页\家\ home.ts'
我尝试了许多变种只有失败:(:(
你能帮我吗?
致以问候