I have a issue with the troop systems

Everytime I playtest my game and I encounter a troop I Get this error

Error
Uncaught TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Value is not of type 'long'.

can anyone help me?
that's not enough information.

When you get the error hit F8 (or F12?) to open the developer tools. Go to the Console tab. Grab a screenshot of that and post it here.
I think I might have found the problem myself I think it could be that some of my plugins are outdated
updating the plugin didn't work so I did what you said too so here
The "not of type long" error usually comes from passing the wrong kind of object as an argument into a function.

What is that PassiveSkills.js plugin? Do you get the error with that plugin turned off? Is it an MZ plugin?
additionally, please give a screenshot of your plugin manager so that we can see the order of your plugins as that is also important.
and you have another error in the configuration of Galv's projectile plugin
The passive skills plugin is just a plugin that makes making passive skills easier and it should be for MZ because that's what it said it was for on the website I got it from.
I just tried them without the passive skill plugin and I don't get the error anymore
Double-post notice: @Ratkingofallrats
Where did you get all the plugins of your third block?
And especially have you renamed them?

Because spaces in filenames can cause problems, there is a reason why all other plugins use underscore _ instead of spaces in their names.
If they were originally with spaces, then that points to their programmer being a bit inexperienced...
I might have renamed it by accident because for the plugin it had me manually put in the plugin code into a text file and I got from here

I might have renamed it by accident
yes, you did - if I go to that website and just hover the mouse over the download link, the popup at the bottom shows the intended name, all with underscores - and that is even more important due to a second problem with renaming:
the filename of the plugin becomes part of the data structure, which means that those plugins who need access to their data structure (which are 80% of the more advanced ones) will fail to work after renaming.

Please check the links, rename all plugin files to their intended names, install and configure them with their correct names and test again.
Okay and thanks for the help

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-issue-with-the-troop-systems.157815/