-
Notifications
You must be signed in to change notification settings - Fork 149
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
Variables created with Pug/Svelte mixin +each are not recognized by Typescript #207
Comments
If your build is running fine, then this is actually a problem with the language service not preprocessing the template before running type checks. See this issue for more info. |
@dummdidumm so is there a path forward right now, or is the status = WIP? |
There are two things that make this hard to implement. |
Has there been any update on this issue? |
Hi, it's been a year) The problem is not solved?🥲 |
this issue still persists |
Problem
Variables created with Pug/Svelte mixin (i.e.
+each('links as link')
) are not recognized by Typescript analyzerand cause "Cannot find name 'link'. Did you mean 'links'?" error.
Example code:
Context
Editor: VS Code or NVim
Used preprocessors: Typescript, Pug, Sass.
svelte-preprocess
version: 4.0.9The text was updated successfully, but these errors were encountered: