Questions tagged [vue-cli-3]

Vue-CLI provides the vue command in your terminal. It provides the ability to quickly scaffold a new project via vue create, or instantly prototype new ideas via vue serve. Use this tag for questions specific to version 3.

Vue CLI, created and maintained by the Vue's core team, is the official tooling for bootstrapping and maintaining your Vue projects.

Offering a feature rich and extensible platform for using (or developing your own) plugins and preset in zero-configuration and easily configurable fashion, as well as future-proofing the upgradebility of your project and tooling configurations.

Vue CLI ecosystem currently offers these Core Plugins:

  • @vue/cli-plugin-babel
  • @vue/cli-plugin-typescript
  • @vue/cli-plugin-eslint
  • @vue/cli-plugin-pwa
  • @vue/cli-plugin-unit-jest
  • @vue/cli-plugin-unit-mocha
  • @vue/cli-plugin-e2e-cypress
  • @vue/cli-plugin-e2e-nightwatch

There's a community site Awesome Vue CLI packages for browsing all the plugins and presets available.

Use this tag for questions specific to version 3.

695 questions
0
votes
1 answer

Vue.js differences

Stupid question, I just start learning Vue.js and I've seen two ways of people using it and I'm a bit confuse and was wondering if someone can explain it to me. Is it that example one is used when creating individual web pages and the second is used…
zAnthony
  • 332
  • 4
  • 17
0
votes
1 answer

vue - How a normal link could act like ?

I have two pages routed: Home > Results Inside 'Home', I have a button/link which is not in and I want this button to redirect to Results.vue passing a parameter. This parameter named activeTab, has to open the desired vue-tabs, which…
hberbary
  • 117
  • 1
  • 6
0
votes
0 answers

Node version issue when creating Vue CLI 3 app

I have installed the latest Vue CLI to version 3.1.3. I'm trying to create a new app with vue create app This goes fine until Yarn tries to install the dependancies: yarn install v1.12.3 [1/4] Resolving packages... [2/4] Fetching…
Simon Cooper
  • 1,574
  • 4
  • 24
  • 53
0
votes
1 answer

Unable to create simple TypeScript definition file

I try to create vue-moment's definition file, it compiles perfectly in IntelliJ but with vue-cli build, i get: This dependency was not found: * vue-moment in ./src/main.ts added to package.json: "types": "types/index.d.ts", main.ts import…
Rouche
  • 254
  • 2
  • 8
0
votes
1 answer

Synchronising VSCode linting with vue-cli linting

I've created a new project with the Vue CLI with options like Typescript and Airbnb linter enabled, which works fine itself, but now I want this linting to show in the VSCode editor, not just as execution errors when the project is served. This…
user37309
  • 597
  • 5
  • 14
0
votes
1 answer

@vue-cli peer dependency warn

I created project using vue-cli 3, cd into it, ran npm install and got this error: npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. I ran npm install ajv Which finished…
kswr
  • 57
  • 8
0
votes
0 answers

After vue-cli build the app is not rendering properly

I'm using the latest vue-cli, and everything works in development. After I build it the first page of the app is not rendering properly, the rest of the pages are working fine. Here is how it looks on dev: and this is how it looks on prod: Using…
Tomer
  • 17,787
  • 15
  • 78
  • 137
0
votes
0 answers

Vue Cli init my-app raises "too many arguments"

I have installed the new vue-cli 3 using instructions on their website npm install -g @vue/cli I try to check what version I have: vue --help (according to their documentation this command should work) but I get cd: string not in pwd:…
jedi
  • 2,003
  • 5
  • 28
  • 66
0
votes
0 answers

Vuex - get error message on run, but everything works as expected?

I have latest Vue project from cli. Just playing around with vuex and the store. Default project has this initialization. import Vue from 'vue'; import App from './App.vue'; import router from './router'; import store from './store'; import…
Pompey Magnus
  • 2,191
  • 5
  • 27
  • 40
0
votes
1 answer

Deploy Vue.js application to gitlab pages even though deployment is successful nothing is displayed

I am trying to deploy a sample Vue.js application to Gitlab pages but even though deployment has passed successfully nothing is rendered when I try to hit the served URL. Here is my deployment code(.gitlab-ci.yml): pages: image: node:latest stage:…
Bestin John
  • 1,765
  • 1
  • 20
  • 23
0
votes
2 answers

Importing/exporting javascript variables for vuejs project

This is probably not the best example for why anyone would want to export/import variables from one javascript to another, but hopefully it's good enough. I've got one javascript file where I initiate a variable, let's call this variable counter and…
Folaht
  • 1,053
  • 1
  • 13
  • 32
0
votes
1 answer

vue-cli - ERROR Error: Cannot find module 'websocket-driver'

I get this weird error when I want to run my vue-cli project: ERROR Error: Cannot find module 'websocket-driver' Error: Cannot find module 'websocket-driver' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load…
Folaht
  • 1,053
  • 1
  • 13
  • 32
0
votes
0 answers

How to use slick slider in vuejs?

I have a file for a component which needs slider in it. This is how i have the slick initialized. import Slick from 'vue-slick' components: { Slick }, data() { return { slickOptions: { //options can be used from the plugin…
Raj
  • 395
  • 1
  • 4
  • 15
0
votes
0 answers

Vuex state & getters not retrieving store data in Vue cli 3

Working with Vue cli 3 and vuex for the first time and trying to get a simple login working with vuex but the getters I have setup are not getting any data from the vuex store and just return nothing even with a state change. Here's my…
Andrew Dean
  • 195
  • 1
  • 7
  • 23
0
votes
0 answers

VueJS - [Vue warn]: Failed to mount component: template or render function not defined

I'm trying to make a vue component which is a wrapper for Owl Carousel. But when I try to use this component into another component, I'm getting an error saying, [Vue warn]: Failed to mount component: template or render function not defined. Link…