-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[bug] flags non-type-only imported type as unknown import #6320
Comments
Asking us to generate a project with your listed dependencies (hopefully with the right options that you chose), copy-paste code (hopefully in the right place, hopefully using dependencies correctly) - that's not a runnable reproduction. Please respect the issue guidelines and provide a runnable reproduction. |
@LinusBorg apologies. Will do |
Link to reproduction repo: https://github.com/vegerot/vue-cli-6320 @LinusBorg should I make a new issue, or continue using this one? |
@LinusBorg I see you tagged this as "needs team repro". Is there anything I can do to help with that? |
that tag means that a team member has to check out your repro. You can only way that someone can pick it up. I won't be able to look into this as I have a few other bases to cover. |
@LinusBorg it's been a few months now and this bug is preventing our team from upgrading ESLint and TypeScript. I'm wondering what I can do to help get this fixed. Do you have a project board where you are tracking the order these issues get completed in? |
Hi @vegerot, thanks for the patience. I couldn't make the time back then to look into it, and thing get drowned out quickly. I ran your reproduction repository and couldn't reproduce the error/warning in question, neither during Is there anything special I need to do? Edit: I was able to get the error switching I also read the discussion in the typescript-eslint repo, but personally can't claim to have fully understood - I don't really use decorators and have zero knowledge about decorator metadata and the intricacies of that. Do these warnings only happen for the decorators you are using from
I don't really see an early indication how/where this can be solved on vue-cli's end, as we don't do anything fancy with TS - |
@LinusBorg let me explain a bit more clearly the issue: If I use If I use |
I understand that. But for me, eslint complains when I use ...and when using So I can't really reproduce the problem with the repo you provided. |
I may need to update eslint in the demo repo |
@LinusBorg my apologies. I have updated the dependencies to reflect the bug |
Thanks, that makes it reproducible in the way you describe it. So, I'll try and recap the situation: Typescript/Build warnings about exports not being found
/* eslint-disable-next-line @typescript-eslint/consistent-type-imports */
import type { ActionMethod } from 'vuex'; outside of these options, I wouldn't count on a quick resolution of this issue given its wider history, and I would presume that it's not something we can fix in Vue-CLI itself anyway. Not sure where to go next, TBH. @ktsn Have you come across problems like these, maybe? |
I believe |
@LinusBorg @ktsn any thoughts on how we should proceed? I find the Should I bring this issue somewhere else? How can I help unblock my team? |
Version
4.5.11
Reproduction link
https://github.com/vegerot/vue-cli-6320
#3145 (comment)
Environment info
Steps to reproduce
Copy/paste the code from #3145 (comment)
Run
vue-cli-service serve
What is expected?
Get no warnings in the console
What is actually happening?
Please read typescript-eslint/typescript-eslint#3108 (comment) and #3145 (comment)
The text was updated successfully, but these errors were encountered: