I had a different issue.
I had an enum SomeName that was declared in a global type files, and an object inside a different file with a property with the same name.
Changing the enum's name fixed that issue for me.