Skip to content
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

'async' package still being used by bucket.js (but only present in devDependencies) #741

Closed
jbottigliero opened this issue Jun 14, 2019 · 4 comments
Assignees
Labels
api: storage Issues related to the googleapis/nodejs-storage API. priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@jbottigliero
Copy link

Environment details

  • OS: Mac OS X 10.14.3
  • Node.js version: v10.16.0
  • npm version: 6.9.0
  • @google-cloud/storage version: 3.0.0

Steps to reproduce

Reproduction File:

// index.js
const {Storage} = require('@google-cloud/storage');

const storage = new Storage();

Output

$ node index.js
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'async'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/Users/joebottigliero/dev/albert-io/albert-data/data-modifications/2019-06-14-gcs-content-type/node_modu
les/@google-cloud/storage/build/src/bucket.js:22:15)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Taking a look a the built bucket.js, it looks like the async module is still being referenced.

Seems related to #702 – and looks like I might be one of the first to catch the new release!

@jbottigliero
Copy link
Author

https://github.com/googleapis/nodejs-storage/blob/master/src/bucket.ts#L33 looks like it might be the cause – let me know if I can provide any additional information!

@callmehiphop callmehiphop added priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 14, 2019
@callmehiphop callmehiphop self-assigned this Jun 14, 2019
@bcoe bcoe assigned bcoe and unassigned callmehiphop Jun 14, 2019
@bcoe
Copy link
Contributor

bcoe commented Jun 14, 2019

@jbottigliero 👋 fancy seeing you here. Could you try the 3.0.1 version of the module? released a hot fix with async in dependencies.

@bcoe
Copy link
Contributor

bcoe commented Jun 14, 2019

I've confirmed that 3.0.0 exists with an exception (due to the missing async) and 3.0.1 healthy.

Thanks for the report @jbottigliero, let me know if you bump into any more issues; I'll also be kicking around this weekend doing some OSS work I expect.

@bcoe bcoe closed this as completed Jun 14, 2019
@jbottigliero
Copy link
Author

@bcoe – just had a chance to verify myself... thanks for the follow-up and I'll see you "around" – I appreciate the quick turn-around by you and the team!

@google-cloud-label-sync google-cloud-label-sync bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants