Multi File Game development

Hi everyone. This is such a newby issue, but I am new to JS and phaser so I am having a bit of trouble with this. I have been trying to split my files so that each scene is its individual file, but I am struggling to get the imports correct. I keep running into different errors. I have the phaser.js file within my project directory and I have the imports at the beginning of each file

I have tried various ways to import the file but to no avail.

:wave:

Are any imports working? What errors are you getting?

If you have phaser.js then you’ll probably do it like Phaser 3 global with ES modules but link the phaser.js in your project directory instead.

By chance, do you have any code you can share?

For your JavaScript files, are you using modules?