N3X404
February 19, 2019, 9:06pm
1
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
d0um
June 14, 2019, 1:05pm
2
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
rlfrahm
January 11, 2020, 11:17am
5
This was the sauce! Thanks!
Osw16
March 12, 2021, 3:48pm
6
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.