I created a project template using the command:
npm create @phaserjs/game@latest
When opening http://localhost:8080 in the browser, I get the error:
Uncaught ReferenceError: Phaser is not defined at main.js:18:15
Adding this line to Main.js solves the problem:
import * as Phaser from 'phaser';
I'm using create_game version 1.2.3
I created a project template using the command:
npm create @phaserjs/game@latestWhen opening http://localhost:8080 in the browser, I get the error:
Uncaught ReferenceError: Phaser is not defined at main.js:18:15Adding this line to Main.js solves the problem:
import * as Phaser from 'phaser';I'm using create_game version 1.2.3