Hi,
Could someone help and just confirm if it's possible to use the capacitor file system plugin in a electron app? I have added it but I am getting the below errors. Just wanted to check it is possible before I look at the errors.
Thanks,
Hi,
Could someone help and just confirm if it's possible to use the capacitor file system plugin in a electron app? I have added it but I am getting the below errors. Just wanted to check it is possible before I look at the errors.
Thanks,
@franse might have some insights. I attempted to set it up for Electron, but couldn't use the writefile action, so I abandoned it and directly wrote code in index.ts
and preload.ts
to handle some file actions. I don't think I had the issue you're encountering though.
@jmartland22 how are you trying to use those plugin, how do you call them on your app?
Can you share some screenshots and what do you want to do?
Thanks both.
At the moment I am not doing a lot with it just trying to verify that it works.
According to ChatGPT these plugins should work.
At the moment I have just tried a page flow that tries to get current location just to see if I can get it working.
Ideally what I want to make is a small program that can grab file off the users PC and send them to the webapp.
Thanks,
But how do you get that error?
You're adding the plugin via js? Or using a flow?
Just adding it by a flow. All wappler nothing custom.
Just been looking and did update everything to latest. It looks like there has been a change in 6 to 7. Wonder if wappler won’t work with 7?
I think the next bug report still open:
So probably that's your issue too...
You can still install and use plugins on the old ways, there's a topic I wrote some time ago..
PS: maybe is not the best option to update to latest capacitor version, @Cheese had some issues too
Anyway, anything you need just tell us
Managed to get rid of these errors. My index page was missing.
script src="capacitor.js"></script
Even now these errors are gone I can't get any of the plugins to work. Do you think at this time Wappler can not really do this without manually coding the plugins?
Thanks,
I think those plugin requires some changes that goes beyond our hands..
What are you trying to do? Maybe I can help you till the team can solve the issue..
Thanks @franse .
Ideally I would like to create a windows app (electron) if I could do Mac to that would be great but not that important. This app will use the file system plugin. The user will specify favourite folders to look at. When the users clicks it will scan these folder for new files. It will then upload them back to the main app (node.js docker) and save the file.