import './js/libs/weapp-adapter';
import * as PIXI from './js/libs/pixi.v5'
//import * as PIXI from './js/libs/pixi.v4.8.js'
const { pixelRatio, windowWidth, windowHeight } = wx.getSystemInfoSync();
let app = new PIXI.Application({
width: windowWidth * pixelRatio,
height: windowHeight * pixelRatio,
antialias: true,
transparent: false,
view: canvas
});
报错
VM4207:1 gameThirdScriptError
PIXI.Application is not a constructor
TypeError: PIXI.Application is not a constructor
at http://127.0.0.1:26471/game/game.js:29:11
at require (http://127.0.0.1:26471/game/__dev__/WAGame.js:3:13718)
at <anonymous>:1:1
pixi 4.X版本没报错,pixi 5.X版面报错
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。