Ionic 2.1.1 Version shows error


#1

I have created Ionic 2 project.
1st i used Ionic 2.0.0 version. when use the
"ionic serve" command it is compiled my sample code and return as script in main.js file. and it’s working fine.

Then i used my project to Ionic 2.1.1 version.i used the same “ionic serve” command.

But the code is converted as string eval(“string”).

So it’s not working and shows undefined error.

Any one please suggest me what changes i need to do for using Ionic 2.1.1 version??


#2

First thing I would do is to see if a newly generated project works. If it does, I would transplant the code from the old project into it.