In my Vue.js component file using the Quasar framework, I have the following code block inside the <template>
:
<q-btn
color="green"
label="save & continue editing"
@click="saveCase()"
/>
This snippet is part of a larger codebase.
TypeScript is flagging this code as an error:
https://i.sstatic.net/LOJOj.png
Error details:
[{
"resource": "/D:/dev-pro/secops-cases/front/src/components/Case.vue",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "17004",
"severity": 8,
"message": "Cannot use JSX unless the '--jsx' flag is provided.",
"source": "ts",
"startLineNumber": 108,
"startColumn": 11,
"endLineNumber": 112,
"endColumn": 13
}]
What could this mean? I am not utilizing React in this project, only Vue.js, Quasar, and TypeScript. The <q-btn>
element is the only one flagged as erroneous, while other elements (both generic and from Quasar) are unaffected.