Module Parse Failed: Unexpected Token Ionic 3
After upgrading to the latest module of ionic and ionic-angular am getting this error. Here is my Package.json file after upgrading.. Here is my Package.json file after upgrading
Solution 1:
For those experiencing this issue after upgrading to @ionic/app-scripts : 3.1.0
you can fix it by, navigate to node_modules/@ionic/app-scripts/dist/template.js:153
and replace the line of code with this
return getTemplatePrefix(htmlFilePath) + "'" + content + "'" + getTemplateSuffix(htmlFilePath);
This was a manual fix for the bug but as of release. @ionic/app-scripts : 3.1.1
the bug was fixed.
Solution 2:
After reading advice from Gerald Brigen and Suraj Rao, I looked at https://github.com/ionic-team/ionic/issues/13379.
Updated package.json app-scripts from 3.1.0 to 3.1.1. Removed that module and ran npm - i
"devDependencies": {
"@ionic/app-scripts": "3.1.1",
}
Post a Comment for "Module Parse Failed: Unexpected Token Ionic 3"