Skip to content
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

Volar errors in latest version (0.40.4) #1790

Closed
m-ghaoui opened this issue Aug 30, 2022 · 3 comments
Closed

Volar errors in latest version (0.40.4) #1790

m-ghaoui opened this issue Aug 30, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@m-ghaoui
Copy link

I get these errors:

> vue-tsc --noEmit -p tsconfig.vitest.json --composite false

- error TS17001: JSX elements cannot have multiple attributes with the same name.

4   <input class="custom-control-input" type="radio" :id="view.guid" :value="view.guid" v-model="selectedViewGuid"
                                                                                        ~~~~~~~

- error TS1196: Catch clause variable type annotation must be 'any' or 'unknown' if specified.

287     } catch (e: Error) {
                    ~~~~~


Found 2 errors in 2 files.

Reverting to 0.40.1 makes those errors go away.

@m-ghaoui
Copy link
Author

m-ghaoui commented Aug 30, 2022

The first error remains after reverting to 0.40.1. This looks like a problem with another package.

The annoying thing is that the bug is somewhere in a dependent package, somewhere deep in package-lock.json

@m-ghaoui
Copy link
Author

Ah upon further investigation I have found out that the errors are indeed from 0.40.4

That's because I had this in my package.json:

"vue-tsc": "^0.40.1"

Which installs the lastest minor version, which is 0.40.4.

I changed it to:

"vue-tsc": "0.40.1"

And now the errors are gone.

@johnsoncodehk
Copy link
Member

Duplicate of #1775

@johnsoncodehk johnsoncodehk marked this as a duplicate of #1775 Aug 30, 2022
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants