google-cloud-node icon indicating copy to clipboard operation
google-cloud-node copied to clipboard

Why doesn't @google-cloud/common-grpc depend on modelo

Open matthewloring opened this issue 9 years ago • 3 comments

This appears to be intentional since it is mocked out in the tests: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/common-grpc/test/operation.js#L56. However, while experimenting with the speech api I get:

Error: Cannot find module 'modelo'
      at require (internal/module.js:12:17)

I have observed this on node v4.7.3. It is not a problem when installing with a version of npm that flattens dependencies since modelo is an official dependency of @google-cloud/common.

matthewloring avatar Feb 20 '17 19:02 matthewloring

This was a bug, thanks for reporting. @google-cloud/[email protected] released.

(ref: https://github.com/GoogleCloudPlatform/google-cloud-node/commit/972d043ae4b886ef0eabfa742770bbf8311c6796)

stephenplusplus avatar Feb 20 '17 23:02 stephenplusplus

Thanks for the quick fix!

matthewloring avatar Feb 20 '17 23:02 matthewloring

How did this leak to a release? Is there a test process that would catch similar issues in the future?

ofrobots avatar Feb 22 '17 01:02 ofrobots