-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Persistent storage with google cloud #709
Comments
|
If I want to install an older version I just have to put the number version in where version is?
|
@TomokoOG same for me here, can not install |
I found this GoogleCloudPlatform/nodejs-docs-samples#731 where it's mentioned that instead of Storage seems to be found this way, I guess
Following the tutorial that was mentioned in the link above I also saw irregularities concerning
So I changed it to this
which got rid of the
But this error occurs. If the json file is in the same folder as the code it should work with "./bucketkey.json" doesn't it? |
Take a look on I recommend to put gcs = new Storage('google-cloud')({
projectId: 'my-project-123',
keyFilename:`${Meteor.rootPath}/assets/app/bucketkey.json`
}); |
Great, that package removed the error, thanks! This remains though:
Unresolved modules. Any thoughts about that? Also, when I try to upload now while on production the image gets uploaded and displayed but not sent to the bucket. Error from the console
Error in browser console
Also, I got one question about this part in the code:
Now in the old code I use, from the mainpage (https://github.com/VeliovGroup/Meteor-Files) I exported this FilesCollection. It's not happening in this code and I wonder why. This upload-function is supposed to be used by normal users and I kinda need to export it when I want to go to the clientside with it, don't I? |
Hey @TomokoOG , Related to TL;DR; find and downgrade And I didn't get your second question |
I apologize. I will improve my behavior in the future. I have googled this github post before but it didn't help me that much. I downgraded already to 2.1.0 and it's still showing me this error. And this version was from 2 years ago, I think? However, I'll keep downgrading and see. I'm sorry about the second question. There was some confusion because I altered the original code of the api overview code https://github.com/VeliovGroup/Meteor-Files#api-overview-full-api. I exported it like so
and wondered why in the google cloud guide the fileCollection is not exported. |
I think I will look for other solutions. This doesn't seem to work on any version. Thanks for the help though. |
Just not part of example, sure you got to export variables you want to use across the application in other files.
No worries
This is related to Hope that helps :) Please support this project with:
|
@TomokoOG got an idea which may help you, could you post content of your Idea is that you might be missing meteor npm install --save meteor-node-stubs |
Thank you! But I switched to cloudinary for file-storage and upload, I'm sorry. |
@TomokoOG no worries, if this tool better suits your needs, it's the right choice |
Eh, I think it was obvious I couldn't deal with that myself either, sowwy.
After dropbox I tried giving this https://github.com/VeliovGroup/Meteor-Files/wiki/Google-Cloud-Storage-Integration a try. How I went:
This error occurs the moment I save the images.js file with that code:
I guess it's about
npm install @google-cloud/storage"
? I installed it as it is. I installed it while the cmd was inside my project directory, without writing meteor. Regarding the unresolved moduls "worker_threads" I tried doing what the log told me by doingmeteor npm install --save worker_threads
but it put out thisWhich makes me think this is not what I should do. Thank you for any help.
The text was updated successfully, but these errors were encountered: