-
Notifications
You must be signed in to change notification settings - Fork 358
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
Issue with TypeScript Generics Causing Panic in encore run #1682
Comments
Suggested Fix:
Suggested Code Changes
|
@theGlenn sorry about that. The issue is that the parser doesn't handle generics with default type parameters at the moment. It should work if you pass in the generic type instead of relying on a default type. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that encore run does not handle TypeScript generics well.
The following code causes a panic when
SearchResult
has a generic parameter.Non-Generic Version:
Generic Version:
Panic Output:
Steps to Reproduce:
Define an interface such as
SearchResult
with a generic parameter.Run the
encore run
command.Expected Behavior: The encore run command should handle TypeScript generics without causing a panic.
Actual Behavior: The encore run command causes a panic when
SearchResult
has a generic parameter.Additional Context:
Encore.dev version: v1.45.2
Node.js version: v21.7.3
OS: Apple M1 Pro - Sonoma 14.6.1
The text was updated successfully, but these errors were encountered: