import type
'type' is declared but its value is never read.Vetur(6133)
Module '"@/stores/auth"' has no exported member 'type'.Vetur(2305)import { useAuthStore, type User } from "@/stores/auth";
metronic demo 8
node v18.12.0
npm 9.1.2
Hi,
Did you make any changes to our codebase?
Please make sure that you are using the same typescript configuration as it is in the latest Metronic version.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi ,
yes, brother am sure I used same typescript configuration
I didn't change any thing
I talked about the original metronic i mean I didn't make any change
the error in the SignUp.vue
Line number 226
the error under words type Userimport { useAuthStore, type User } from "@/stores/auth";
------------------------------------
metronic demo 8
node v18.12.0
npm 9.1.2
Hi,
We rechecked our demos in the latest Metronic version and still without errors with the same node and npm versions.
From your error message, it seems like the problem is with "type" keyword, can you try to remove it?
Regards,
Lauris Stepanovs,
Keenthemes Support Team
the code is running withOut error
and building withOut error
but when i open the component SignIn.vue & SignUp.vue
the error is display in code
i tried remove the "type" keyword
but the error is stay underline "User"import { useAuthStore,User } from "@/stores/auth";
'User' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.ts(1444)
Hi,
Which code editor are you using?
It seems like you are using Visual Studio Code with the installed Vetur extension which throws this error, try to disable this extension for your workspace.
Also install TypeScript Vue Plugin (Volar) extension.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
Thank you so much
great ....
Hi,
Glad to hear that it worked for you
Regards,
Lauris Stepanovs,
Keenthemes Support Team