Occasionally you can get storybook template parsing errors which are only ever present in the production builds of storybook.
In this case we do not get full error messages and only receive status codes. After googling around I couldn’t find a definitive list of these error codes so I have listed them all here for future reference.
SyntaxError: 0 - "Illegal comment." SyntaxError: 1 - "CDATA section is allowed only in XML context." SyntaxError: 2 - "Duplicate attribute." SyntaxError: 3 - "End tag cannot have attributes." SyntaxError: 4 - "Illegal '/' in tags." SyntaxError: 5 - "Unexpected EOF in tag." SyntaxError: 6 - "Unexpected EOF in CDATA section." SyntaxError: 7 - "Unexpected EOF in comment." SyntaxError: 8 - "Unexpected EOF in script." SyntaxError: 9 - "Unexpected EOF in tag." SyntaxError: 10 - "Incorrectly closed comment." SyntaxError: 11 - "Incorrectly opened comment." SyntaxError: 12 - "Illegal tag name. Use '<' to print '<'." SyntaxError: 13 - "Attribute value was expected." SyntaxError: 14 - "End tag name was expected." SyntaxError: 15 - "Whitespace was expected." SyntaxError: 16 - "Unexpected '<!--' in comment." SyntaxError: 17 - "Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<)." SyntaxError: 18 - "Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`)." SyntaxError: 19 - "Attribute name cannot start with '='." SyntaxError: 21 - "'<?' is allowed only in XML context." SyntaxError: 20 - "Unexpected null character." SyntaxError: 22 - "Illegal '/' in tags." SyntaxError: 23 - "Invalid end tag." SyntaxError: 24 - "Element is missing end tag." SyntaxError: 25 - "Interpolation end sign was not found." SyntaxError: 27 - "End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces." SyntaxError: 26 - "Legal directive name was expected." SyntaxError: 28 - "v-if/v-else-if is missing expression." SyntaxError: 29 - "v-if/else branches must use unique keys." SyntaxError: 30 - "v-else/v-else-if has no adjacent v-if or v-else-if." SyntaxError: 31 - "v-for is missing expression." SyntaxError: 32 - "v-for has invalid expression." SyntaxError: 33 - "<template v-for> key should be placed on the <templae> tag.|" SyntaxError: 34 - "v-bind is missing expression." SyntaxError: 35 - "v-on is missing expression." SyntaxError: 36 - "Unexpected custom directive on <slot> outlet." SyntaxError: 37 - "Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity." SyntaxError: 38 - "Duplicate slotnames found. " SyntaxError: 39 - "Extraneous children found when component already has explicitly named default slot. These children will be ignored." SyntaxError: 40 - "v-slot can only be used on components or <template> tags." SyntaxError: 41 - "v-model is missing expression." SyntaxError: 42 - "v-model value must be a valid JavaScript member expression." SyntaxError: 43 - "v-model cannot be used on v-for or v-slot scope variables because they are not writable." SyntaxError: 44 - "v-model cannot be used on a prop, because local prop bindings are not writable. Use a v-bind binding combined with a v-on listener that emits updae:x event instead.|" SyntaxError: 45 - "Error parsing JavaScript expression: " SyntaxError: 46 - "<KeepAlive> expects exactly one child component." SyntaxError: 47 - "'prefixIdentifiers' option is not supported in tis build of compiler.|" SyntaxError: 48 - "ES module mode is not supported in this build of compiler." SyntaxError: 49 - "'cacheHandlers' option is only supported when the "prefixIdentifiers" option is enabled." SyntaxError: 50 - "'scopeId' option is only supported in module mode." SyntaxError: 51 - "@vnode-* hooks in templates are deprecated. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support will be removed in 3.4." SyntaxError: 52 - "v-is="component-name" has been deprecated. Use is="vue:component-name" instead. v-is support will be removed in 3.4." SyntaxError: 53 - "``"