-
Notifications
You must be signed in to change notification settings - Fork 10
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] TS2339: Property 'on' does not exist on type. #318
Comments
Same code works with |
Hi Sébastien, thanks for reporting this issue! Best, |
Actually, I am pretty sure this is a duplicate of #251 If you do have cds-types installed, can you please run ( |
Hi Daniel, Yes, we do have cds-types installed as you can see in the summary. But, this works well with version |
Hi Sébastien, thanks for checking! Please also check out my other suggestion. Best, |
|
Hi Sébastien, can you please check out @hakimio's suggestion and see if that solves the problem for you? Best, |
@sebastien-savalle how does your |
No, this does not work even with And tsconfig:
|
Is there an existing issue for this?
Current Behavior
We observed a weird behavior when migrating to
cds
8 andcds-types
0.7.0.Custom handler cannot be registered properly. A typescript error is thrown.
error TS2339: Property 'on' does not exist on type 'AdminService'.
But it works when this is cast to ApplicationService.
Expected Behavior
No response
References
https://pages.github.tools.sap/cap/docs/tools/cds-typer#typer-top-level-imports
Versions
Anything else? Logs?
No response
The text was updated successfully, but these errors were encountered: