[File Plugin] Cannot read property 'dataDirectory' of undefined
Question
Forge component by OutSystems R&D
Application Type
Mobile

I am trying to use SaveFile action from the pluigin but I keep getting this error whenever I use any action from the plugin.


It seems like the cordova.file object is not initiated and something wrong with the installation. 

I have seen many peopl talking about the same issue they are facing but I can't find any solutoin for it s far.

Can someone please help on that?


and now getting this error while generating a new APK for Android

Staff

Hi Mohamed Emam, 

I wasn't able to replicate your issue, can you send a sample? 

Thanks!

Hi,

It looks like the problem is generating the native app. You can get a detailed generation log available at Service Center (Applications -> Your Application -> Distribute -> Native Platforms -> download generation log icon).

The generation report with the error could help you to identify the issue.

Kind regards, David.

Hi Mohamad Emam,
Make sure you're using the correct version of the component with the supported MABS version.

In case using MABS 7.0  for build then use the latest version of the plugin.
https://www.outsystems.com/forge/component-versions/1633

- Assif

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.