-
Notifications
You must be signed in to change notification settings - Fork 141
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
Missing return types and promises not awaited #961
Comments
Thanks @thehme for taking out an issue. These errors do not show up for us per our CI, we are using TS 4.x. I assume you are using a more recent version of Typescript. Can you set "skipLibCheck: true" in your tsconfig? While we want to make things as compat as possible, being forwards compatible with all versions of typescript is not always possible, and it's not a goal of this lib. |
@silesky we are using TS Atm I am stuck with the test suite failing because after awaiting the promises in As for using EDIT: I posted a PR for this fix at #963 |
Hey @thehme,
Hmmm... that shouldn't be the case -- getting any build errors like this from |
I am working on a sample repo. |
@silesky thanks for your advice through this issue. I worked on setting up the sample repo and found the issue through that process. My IDE (VS Code v1.82.2) imported types as follows in the non-working project:
When I created a clean repository, the types were imported differently:
Without the sub-directories, the compilation errors went away. The errors were due to how the types were being imported. |
I have added this package to my ts project and seeing these errors on compile:
I can try to fix these errors, which lead to errors about promises not being awaited in
packages/node/src/app/analytics-node.ts
. I think I have fixed these errors too, so would like to post a PR and get any feedback necessary. This is blocking us from using the package to start tracking server side events.The text was updated successfully, but these errors were encountered: