Failed to build Phaser3.60
ProgrammingLife opened this issue · 1 comments
ProgrammingLife commented
Tried to build Phaser3.6. Installed:
npm install phaser3spectorjs
But anyway I get this issue:
ERROR in ./node_modules/phaser/src/renderer/webgl/WebGLRenderer.js
Module not found: Error: Can't resolve 'phaser3spectorjs' in '/home/denis/mylab/trash/phaser_custom_build_test/phaser3-custom-build/node_modules/phaser/src/renderer/webgl'
@ ./node_modules/phaser/src/renderer/webgl/WebGLRenderer.js 28:18-45
@ ./node_modules/phaser/src/core/CreateRenderer.js
@ ./node_modules/phaser/src/core/Game.js
@ ./phaser-custom.js
Could you please update this repo to work with the new Phaser version?
photonstorm commented
It's not an npm package you can install.
Just add this to the webpack config (where all the other conditionals are defined):
"typeof WEBGL_DEBUG": JSON.stringify(false),
Then it won't try to load Spector.