Parser Error: The class was found in global scope but it's cound't be loaded ????? but it worked some minutes ago

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Covenauta

I was making a pvz Adventures like game, I have a class “Data” that is typed as class_name Data, here I have an enum for plans, zombies, projectiles, and a dictionary called “get” that contains preload(classes) to use Data.get[Data.enum] to get a class. To assign the kind of projectile the plant will shoot I use ‘export(Data.O) var projectile’ it worked. Then I made a similar thing for planning a plant, I have a tilemap, an enum T (terrains) that are interpreted on the tilemap to allow or not plant on this cell, the base class of plants have
‘export(Array, Data.T) var plant in’


enter image description here
enter image description here

And suddenly i doesn’t work, it said ‘Error expected const expression’ in the export, line wasen’t in red, just happen on play, Then all get broken without reason, I comment that export and happen the same error on the projectile export, I commented it, and give me the error in title in line 47 where literally end my planta code ¿¿¿???

‘Parser Error: The class ‘Data’ was found in global scope but it’s couldn’t be loaded’

enter image description here
enter image description here

I don’t have any idea what had happened, all worked well and now not, the problem seems to be un Data but where or how? I can’t play the project