I have JS project. I started it a while ago and have quite a lot of code by now. Up until now it wasn’t a problem to upgrade it from one Ionic2 beta to another. But now I’m trying to upgrade it to RC.0 and having problems that seems to be related to the fact that it’s JS project and not TS.
I tried to use both approaches (Copying files to a New Project and Creating New Project) and in both cases I end up with the same error:
bundle dev failed: Unexpected character '@' (10:0) in /home/git/myapp/src/pages/home/home.js [13:42:09] SyntaxError: Unexpected character '@' (10:0) in /home/git/myapp/src/pages/home/home.js at Parser.pp$4.raise (/home/git/myapp/node_modules/rollup/dist/rollup.js:4070:13) at Parser.pp$7.getTokenFromCode (/home/git/myapp/node_modules/rollup/dist/rollup.js:4609:8) at Parser.pp$7.readToken (/home/git/myapp/node_modules/rollup/dist/rollup.js:4330:15) at Parser.pp$7.nextToken (/home/git/myapp/node_modules/rollup/dist/rollup.js:4321:13) at Parser.pp$7.next (/home/git/myapp/node_modules/rollup/dist/rollup.js:4266:8) at Parser.pp.eat (/home/git/myapp/node_modules/rollup/dist/rollup.js:2200:10) at Parser.pp.semicolon (/home/git/myapp/node_modules/rollup/dist/rollup.js:2245:13) at Parser.pp$1.parseImport (/home/git/myapp/node_modules/rollup/dist/rollup.js:2996:8) at Parser.pp$1.parseStatement (/home/git/myapp/node_modules/rollup/dist/rollup.js:2409:44) at Parser.pp$1.parseTopLevel (/home/git/myapp/node_modules/rollup/dist/rollup.js:2313:23)
What is the best way to upgrade JS project to RC.0? Should I transfer all my code to TS (I’d prefere not to do it at this point of my project) or is there other way?