-
Notifications
You must be signed in to change notification settings - Fork 604
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
Cannot find module '@google-cloud/tasks/build/protos/protos' #5058
Cannot find module '@google-cloud/tasks/build/protos/protos' #5058
Comments
Great, was able to reproduce. Submitted googleapis/gapic-generator-typescript#1543 as a fix. |
@aphofstede, I've just released 5.1.1 which should contain the fix for this. Could I trouble you to give it a try and see if it works? |
Works. ty |
I think they got removed again |
@aphofstede I had the same problem and here is how I fixed it by changing the import statement. import { protos } from '@google-cloud/tasks' The types under |
Environment details
Steps to reproduce
Since v5, in TypeScript, resolve the google.cloud.tasks.v2.ITask interface from the package.
Seems to resolve fine in the IDE, but during TS compilation / Jest test run the error appears.
EDIT: Workaround: Use the namespaced type name directly, e.g.
The text was updated successfully, but these errors were encountered: