Cannot read property 'dataDirectory' of undefined

Our team are working in a project using Ionic and Team Foundation Server for code control, but when my coworker checked some changes and I got his version the following error occurred: Cannot read property ‘dataDirectory’ of undefined. He told me that it’s working in his computer, so I believe that the problem is in my computer and something that is missing in it. We are using cordova-plugin-file 3.0.0, ionic 1.2.1 and cordova 5.4.1.