0
0
Vueframework~10 mins

Vue CLI and Vite setup - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new Vue project using Vue CLI.

Vue
vue create [1]
Drag options to blanks, or click blank then click option'
Amy-vue-app
Bvite-app
Creact-app
Dangular-app
Attempts:
3 left
💡 Hint
Common Mistakes
Using Vite project name with Vue CLI command
Using wrong project names like react-app
2fill in blank
medium

Complete the command to create a new Vue project using Vite.

Vue
npm create vite@latest [1] -- --template vue
Drag options to blanks, or click blank then click option'
Avue-cli-app
Bvite-vue-app
Cvue-vite-app
Dreact-vite-app
Attempts:
3 left
💡 Hint
Common Mistakes
Using React template
Wrong project name format
3fill in blank
hard

Fix the error in the command to start the Vue CLI development server.

Vue
npm run [1]
Drag options to blanks, or click blank then click option'
Aserve
Bstart
Cdev
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'dev' which are common in other frameworks
Using 'build' which is for production build
4fill in blank
hard

Fill both blanks to install dependencies and start the Vite development server.

Vue
npm [1] && npm run [2]
Drag options to blanks, or click blank then click option'
Ainstall
Bserve
Cdev
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'serve' for Vite dev server
Skipping install step
5fill in blank
hard

Fill all three blanks to add Vue Router to a Vite project and start the server.

Vue
npm [1] vue-router && npm run [2] && echo '[3] started'
Drag options to blanks, or click blank then click option'
Ainstall
Bdev
CVite server
Dserve
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'serve' instead of 'dev' for Vite
Wrong echo message