Vendure Common Errors
· Martijn
On this page
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"
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 role
SET permissions = TRIM(BOTH ',' FROM
REPLACE(
REPLACE(
REPLACE(permissions, 'MyCustomPermission,', ''),
',MyCustomPermission',
''
),
'MyCustomPermission',
''
)
)
WHERE permissions LIKE '%MyCustomPermission%';
More to come!