cannot correctly infer type in vue2-composition-api 1094083688 Created September 06, 2021 12:20 The IDE throws a type error, while in VS Code, It works well And also I can run my project with webpack and no error is thrown
Please follow https://youtrack.jetbrains.com/issue/WEB-52581 for updates
as a workaround, please try enabling Typescript language service in Settings | Languages & Frameworks | TypeScript
Thank you for your reply!
But the Typescript language service was enabled when the error was thrown :(
And I tried reopen Typescript language service and it still cannot work :(
It works fine for me with the service enabled; what IDE version do you use?
I'm using the same version, and the issue doesn't occur for me with the service enabled...
I created a new project and tried using vue2-composition-api, but no error was thrown... Maybe there's something wrong with my project configuration
Thank you for your reply again, I will try to figure out the problem myself :(
Any news? I'm having the same problem and cannot find a solution