We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
undefined
1 parent 77fb6a3 commit 5a403f4Copy full SHA for 5a403f4
src/utils/parseSetupScript.ts
@@ -8,6 +8,9 @@ export function parseSetupScript (id: string, descriptor: SFCDescriptor) {
8
const script = compileScript(descriptor, { id })
9
10
function getValue (prop) {
11
+ if (!prop?.type) {
12
+ return undefined
13
+ }
14
if (prop.type.endsWith('Literal')) {
15
return prop.value
16
}
0 commit comments