Can't get vuejs ionic project run on Ionic Dev App

Hello, i have a ionic project using vuejs, but i cant do " ionic serve -c" when i do it , it trow me an error :

Since you’re using the custom project type, you must provide the ionic:serve **
** npm script so the Ionic CLI can serve your project.

i don’t know what to do, thanks

1 Like

Do you solved your issue ?
I have almost the same when I try to build my project :

Since you’re using the Vue project type, you must provide the ionic:build npm script so the Ionic CLI can build your project

Same here.
I cannot add Capacitor as the project has to be build once it says and build script doesn’t exist.
Can any one put some light here?

As you can read from here, you need to add this to your package.json:

    "ionic:build": "vue-cli-service build",
    "ionic:serve": "vue-cli-service serve",
4 Likes

This was the sauce! Thanks!

I Got this error on 03/12/2021
Since you're using the Vue project type, this command won't work. The Ionic CLI doesn't know how to generate framework components for Vue projects..

For me all I had to do was run

npm install -g @ionic/cli@latest

Then it worked, I had to use the --force flag as well as I had some older ionic cli.