I am trying to use the ‘File’ Api that allow read and write acess to the file. I have a created a new project with tutorial template. It create a typescript project. I tried to create the js project using --no-ts flag but it doesn’t work. So I decided to check with the typescript.
When I tried to do
alert("temp directory" + cordova.file.tempDirectory );
I get the error [ts]cannot find name cordova.Then I run the command
npm install -g typings typings install dt~cordova --save --global
it remove the cannot find cordova error but now it is showing error with file, ([ts] ‘file’ doesnot exist in the file cordova )
I googled and didn’t find the solution for this.
Please let me if any one has faced the similar issue and let me how can I fix this issue.
I am not sure why ionic has removed js. It is working with js project. There is no way to create js project now.
It will be very difficult for the developer like me who don’t know typescript.