You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using PIXI with react.
When compiling the whole project and run it on browser, we could see following error:
I add a console to see what ismobilecall is.
And in browser console, we could see ismobilecall is an object that contains several APIs,
That means after the project compiled, ismobilejs export default an Object instead of a function.
But strangely, I create a new project and use rollup to compile, nothing went wrong, only in react project it went wrong.
So is it a bug in react tools? Or do you know any solutions to solve it
I believe it is an issue with v1 of ismobilejs - see issue #115.
Using a complete different stack than React (Gulp, ES6), it is also causing an error when running my build process, because ismobilejs isn't transpiled when imported as a dependancy by @pixi/settings (see screenshots).
Expected Behavior
no mistakes when compiling
Current Behavior
Possible Solution
Steps to Reproduce
STEP 1: npm i pixi.js and then using
import * as PIXI from './pixi.js';
And just write a hello world demo.
STEP 2: compiler the project and failed
Environment
pixi.js
version: _e.g. newestThe text was updated successfully, but these errors were encountered: