Home > Net >  defineProps Parsing error regarding prop type: Unexpected token. Did you mean `{'}'}` or `
defineProps Parsing error regarding prop type: Unexpected token. Did you mean `{'}'}` or `

Time:05-04

const props = defineProps({
  selectedData: <Record<string, string>>
});

there is a red line under the closing bracket, saying

Parsing error: Unexpected token. Did you mean {'}'} or &rbrace;?eslint Expression expected.ts(1109)

Am I defining the type incorrectly? I am not sure how else to do to it. I was tying to follow this example given by vue.js: enter image description here

  • Related