-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with using typescript decorator #89
Comments
Hi @hatedMe I might have the same problem but I'm getting
when I try to use |
Hade the same problem and found out that I had enabled typescript decorators the wrong place, namely in tsconfig.app.json. It needs to go into your top level tsconfig.json - like this:
|
it works, you saved my day! thanks! @chessydk-vertica |
Glad to hear!
Med venlig hilsen
Carsten Hess
Extern frontender
E-mail: ***@***.******@***.***>
Direct: +4551300250
…________________________________
Fra: HuangYu ***@***.***>
Sendt: 22. april 2024 10:45
Til: vitejs/vite-plugin-vue2 ***@***.***>
Cc: Carsten Hess ***@***.***>; Comment ***@***.***>
Emne: Re: [vitejs/vite-plugin-vue2] Problem with using typescript decorator (Issue #89)
Hade the same problem and found out that I had enabled typescript decorators the wrong place, namely in tsconfig.app.json. It needs to go into your top level tsconfig.json - like this:
{
"files": [],
"compilerOptions": {
"experimentalDecorators": true,
},
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
]
}
it works, you saved my day! thanks!
—
Reply to this email directly, view it on GitHub<#89 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BEJCGV3OERTJBEZTRJFAODDY6TEZLAVCNFSM6AAAAAAZ7X52SOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYHAZTEOJVGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Is there a feasible solution for the above code?
The text was updated successfully, but these errors were encountered: