Jump to content

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


Chen Ling Xue
 Share

Recommended Posts

The phaser game not starting error on 

2pN7B.png.4eeb4a825294f4e49e8dc237bb1b3ca0.png

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
DRcfl.png.9ea6e9ad1808d6e1f6ea1523f1914bb5.png

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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