There's too many errors coming from all Vue files.
Is there any way to fix them?
Please help.
Cheers,
Mizan
Example:
* Account.vue
Type '{ href: string; class: string; dataBsToggle: string; "data-bs-toggle": string; dataBsTarget: string; "data-bs-target": string; }' is not assignable to type 'HTMLAttributes<HTMLAnchorElement>'.
Property 'dataBsToggle' does not exist on type 'HTMLAttributes<HTMLAnchorElement>'.ts(2322)
* App.vue
const RouterView: new () => {
$props: AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterViewProps;
$slots: {
...;
};
}
'RouterView' cannot be used as a JSX component.
Its instance type '{ $props: AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterViewProps; $slots: { ...; }; }' is not a valid JSX element.ts(2786)
* Settings.vue
JSX element class does not support attributes because it does not have a 'props' property.ts(2607)
'Field' cannot be used as a JSX component.
Its instance type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{ label: string; as: string | Record<string, any>; bails: boolean; uncheckedValue: any; validateOnInput: boolean; ... 9 more ...; keepValue: boolean; }> & Omit<...>; ... 10 more ...; $watch(source: string | Function, cb: Function, options?: WatchOptions<...>...' is not a valid JSX element.ts(2786)
Hi,
I assume that you are using the Volar extension for your VS code.
We have checked Metronic in Visual Studio Code with Volar installed, looks like the errors are related to fullcalendar plugin implementation. We will review this and include a fix in upcoming releases.
For a fix please refer to the following Volar GitHub issue.
https://github.com/johnsoncodehk/volar/discussions/592
To disable a fullcalendar extension please follow steps below.
package.json
:"@fullcalendar/core": "^5.9.0",
"@fullcalendar/daygrid": "^5.9.0",
"@fullcalendar/interaction": "^5.9.0",
"@fullcalendar/list": "^5.9.0",
"@fullcalendar/timegrid": "^5.9.0",
components/calendar/CalendarApp1.vue
.package-lock.json/yarn.lock
and node_modules
.yarn
or npm install
commands.