I have been using the Ionic framework to develop a mobile application by following the guidance provided at http://ionicframework.com/docs/v2/getting-started/tutorial/.
ionic start my-mobileapp sidemenu --v2
After that, I launched the app in a browser using the command below.
ionic serve
Everything was working smoothly until I decided to change my file extensions from *.js
to *.ts
.
Error: Cannot find module './pages/getting-started/getting-started' from '/Users/jwayne/git/my-mobileapp/app'
Surprisingly, switching back the file extensions to js
resolved the issue.
My query is regarding how Ionic can differentiate between TypeScript and JavaScript code stored in a .js file?