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

How can I fix this ESLINT error? I haven't seen any problems. #187

Closed
5 tasks done
fxzer opened this issue May 25, 2023 · 3 comments
Closed
5 tasks done

How can I fix this ESLINT error? I haven't seen any problems. #187

fxzer opened this issue May 25, 2023 · 3 comments

Comments

@fxzer
Copy link

fxzer commented May 25, 2023

Describe the bug

image

image

image

和Vue官网代码片段一样

image ### Reproduction

Parsing error: '}' expected.eslint

System Info

"@antfu/eslint-config": "^0.39.3",

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@antfu
Copy link
Owner

antfu commented May 25, 2023

We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

@antfu antfu closed this as completed May 25, 2023
@fxzer
Copy link
Author

fxzer commented May 26, 2023

我找到了问题原因,在上一行不能用 <string> 形式类型断言,换成 as 就没问题了
image
image

@so1ve
Copy link
Contributor

so1ve commented May 27, 2023

It's a volar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants