Why am i seeing 'type is not a valid enum value' in typescript?
This error suggests that you're trying to assign a value to an enum variable that isn't one of its valid values.
Example:
enum Colors {
Red, Green, Blue
}
let myColor: Colors = "Yellow";
Solution:
enum Colors {
Red, Green, Blue, Yellow
}
let myColor: Colors = Colors.Yellow;