-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Circular references cause errors with TypeScript preprocessing. #452
Comments
Can you provide a simple REPL example? I can't reproduce it with the step you mention. |
@jasonlyu123 This should reproduce the problem: https://github.com/brunnerh/svelte-circ-problem-demo I get errors at:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You may get to silence the error if you don't forward |
@dummdidumm That appears to work, thanks! Of course a general fix would still be appreciated |
This should be possible to solve now with the new experimental |
Describe the bug
When creating components with circular references there are Typescript errors on the component usage and possibly
script
tags. This happend when i created a menu consisting of aMenu
referencing aMenuItem
component, while theMenuItem
again referencesMenu
for the sub-menu entries.The build still works just fine.
To Reproduce
Steps to reproduce the behavior:
type="text/typescript"
.There may be this error on the script tag (probably only appears with no-implicit-any enabled, but the type not being resolved probably causes the errors at the component usage site):
And something like the following on the component usage:
(If i comment out one of the component usages, all errors disappear.)
Expected behavior
No errors, if possible.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: