6

I recently cloned a project and when I tried to serve it, I got an error:TypeError: AppScripts.serve is not a function.

How would I go about fixing this issue/where should I look?

I have already tried updating ionic, and reinstalling all plugins(just in case).

Assistance on this would be greatly appreciated !

TheMaster
  • 45,448
  • 6
  • 62
  • 85

4 Answers4

26

Execute this command:

npm install --save-dev @ionic/app-scripts@latest

After that your app should work using

ionic serve
Ben Spi
  • 816
  • 1
  • 11
  • 23
2

This is the same as mine when trying serve old project in updating Ionic3, all gonna error something like that, but when start a new project again its gonna work well

2

Running this command works for me

npm install --save-dev @ionic/app-scripts@latest

and then

ionic serve
Kishan Oza
  • 1,707
  • 1
  • 16
  • 38
Nassima Noufail
  • 177
  • 1
  • 2
0

I face the same issue when i started developing old ionic 2 project with ionic 3. follow the following steps works for me :

npm cache clear

delete the node-modules folder

npm install

npm install --save-dev @ionic/app-scripts@latest

ionic serve
Kishan Oza
  • 1,707
  • 1
  • 16
  • 38