Vendure Common Errors
Common errors and how to fix them. Entries are kept short and concise because many more will be added over time.
Enum "Permission" cannot represent value: "MyCustomPermission"
Section titled “Enum "Permission" cannot represent value: "MyCustomPermission"”A custom permission can stay assigned to a role after a plugin is removed. This causes a Permission enum error because the value no longer exists. Remove the stale permission from the role table:
UPDATE roleSET permissions = TRIM(BOTH ',' FROM REPLACE( REPLACE( REPLACE(permissions, 'MyCustomPermission,', ''), ',MyCustomPermission', '' ), 'MyCustomPermission', '' ))WHERE permissions LIKE '%MyCustomPermission%';More to come!
