hi,
i followed zenva’s tutorial on setting up the phaser 3 template with webpack/babel/etc, and everything worked fine until i added a class of my own.
i exported the class like this
Blockquote
export default class MyClass
which doesnt extend anything. then tried to import it in index.js like this
Blockquote
import MyClass from ‘./util/myClass.js’
but npm run start throws the following error
Blockquote
ERROR in ./src/scenes/TitleScene.js
Module not found : Error: Can’t resolve './util/myClass.js in pathToTitleScene etc.
do i need to notify webpack that i’ve added this folder with my custom classes?
thanks in advance