-
Notifications
You must be signed in to change notification settings - Fork 116
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
Improve error message "No valid runtime type for x given." #508
Comments
Also, when reflection is not set to true in
Edit: this might be specific to |
good catch. we should make sure we don't have several different error messages meaning the same thing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deepkit-framework/packages/type/src/reflection/processor.ts
Line 363 in 92315f9
@SamJakob had a great idea about improving this error message. Quote from discord:
it's not always possible to detect tsconfig.json options or paths (since they might be provided by a build tool, or when run in the browser), but we could describe in a general way what needs to be enabled. And if the code runs in the server maybe try to check if there is a tsconfig.json and just read that file (works for beginners well enough that have likely a single tsconfig.json)
The text was updated successfully, but these errors were encountered: