"Cannot read property 'externalDataDirectory' of undefined"

Anyone got this error during debugging whilst using File Plugin?

How do you fix it?

I'm trying to export my entity attributes into excel format and saving it in my local drive.

Solution