Jhazer Posted June 30, 2015 Share Posted June 30, 2015 Hello everyone I am now joining the forum, and have now started using intel XDK, to create a Phaser project. However, the default project created by XDK, has some errors. It doesn't prevent the app from running (I can see a rotating bear on the screen), but I fear those errors will spell trouble. Here are the errors: 10 JSHint Problems×Line Problem Code snippet4 'document' is not defined. (W117) document.addEventListener('DOMContentLoaded', function()7 'PIXI' is not defined. (W117) var stage = new PIXI.Stage(0x66FF99);10 'screen' is not defined. (W117) var width = screen.availWidth;11 'screen' is not defined. (W117) var height = screen.availHeight;12 'PIXI' is not defined. (W117) var renderer = PIXI.autoDetectRenderer(width, height);15 'document' is not defined. (W117) document.body.appendChild(renderer.view);17 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate);20 'PIXI' is not defined. (W117) var texture = PIXI.Texture.fromImage("asset/phaser.png");23 'PIXI' is not defined. (W117) var phaserImage = new PIXI.Sprite(texture);37 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate); 2 JSHint Problems×Line Problem Code snippet11 'document' is not defined. (W117) document.addEventListener('deviceready', function() {13 'navigator' is not defined. (W117) navigator.splashscreen.hide(); 4 JSHint Problems×Line Problem Code snippet21 'BasicGame' is not defined. (W117) BasicGame = {26 'BasicGame' is not defined. (W117) BasicGame.Game = function (game)32 'BasicGame' is not defined. (W117) BasicGame.Game.prototype =49 'Phaser' is not defined. (W117) this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; The codes are just the default. If you would like me to post the codes I can do so.I appreciate any help I can get on this. Thanks Link to comment Share on other sites More sharing options...
AnushaM Posted July 30, 2015 Share Posted July 30, 2015 Hi, Thanks for bringing that up. These errors will not affect the functionality of the code. But I have reported it to the respective sample creators to resolve them. Please post to the Intel XDK user forums in the future for better support: https://software.intel.com/en-us/forums/intel-xdk Link to comment Share on other sites More sharing options...
Ykarhus Posted December 4, 2015 Share Posted December 4, 2015 I got a problem that looks like that. But I think this one is more serious: It keeps saying that 'Phaser' is not defined. What should I do? Link to comment Share on other sites More sharing options...
Recommended Posts