Jump to content

Phaser 3. Importing phaser/src/core/Game produce error during runtime

Chen Ling Xue

Recommended Posts

The phaser game not starting error on 


import Game1 from "phaser/src/core/Game";
import { Game } from "phaser";
console.log(Game1, Game);
const app = new Game1(gameSettings);

But when I tried to check the output of the console, it gives the same instance

but when I tried to make use the one from the phaser js directly, no error found

import { Game } from "phaser";
const app = new Game(gameSettings);

Thanks in advance for answers which part I do wrong.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...