Skip to main content

Class is already defined JavaScript error

This could be happening if you have a scriptable object with the same name as another one in your project, or a class with the same name (But different namespace).

Possible solutions:

  • Rename the scriptable object/class so it doesn't have the same name as the other.