Closed itsmebasti closed 7 months ago
I use import 'phaser'
for ts environment.
This didn't work for me, I still get the same error. Is there any additional information I can provide? I just added you to my private project (https://github.com/itsmebasti/tractor-legacy) Feel free to run it using yarn yarn watch
npm should also work if prefered
Sorry I don't want to dig into project, btw I am not familiar with typescript configuration neither.
Alright, I totally understand, I will try to create an animation for the shaking instead. When I stumble over your plugins again, which I probably will, I will investigate the problem a little more in detail :)
Typescript configuration is complex, it includes tsconfig.json file, and the ts-plugin used in bundle tool, different bundle tool has their own ts-plugin. :(
Hi there, first of all, thank you for your efforts and contribution! I am trying to add your shaking plugin to my small project. I am running a node/lit app using Typescript. When I try to add the plugin, the plugin does not have access to the Phaser dependencies. I Get this error:
Is there anything I need to add, to make it work (latest versions of everything eg. Phaser, and this plugin 3.80.1)
I could add
import * as Phaser from "phaser";
to every single file of this dependency, but I wonder if there is anything I need do globally to make Phaser visible to the plugin.assigning it to globalThis or window didn't help.