I hope someone would be able to assist.
I have Meteor 1.10.1 installed and running smoothly.
I wanted to connect from my server side code to my firebase storage with the help of @google-cloud/storage package. It was fairly simple and I got it working as expected.
However, for some reason right after installing this package I get this build warning every time:
Unable to resolve some modules: "worker_threads" in /.../node_modules/write-file-atomic/index.js (web.browser) If you notice problems related to these missing modules, consider running: meteor npm install --save meteor-node-stubs
meteor npm install --save meteor-node-stubs as suggested in the console doesn’t solve this issue.
If you want to reproduce this warning just install @google-cloud/storage and run meteor.
After investigating a little further I found out this closed issue.
Apparently this warning should appear only when using node version <= v11.7.0 - but Meteor v1.10.1 uses node v12.16.1 so I don’t understand what’s going on here .
That’s why I thought it makes more sense to ask here rather than open issue for write-file-atomic package, I suspect it might be related to the meteor setup.
I have tried reinstalling all my packages, running
meteor reset, etc.
Still getting the warning, even though it seems harmless so far I don’t feel comfortable to push these changes to production.
Any assistance is much appreciated