vue-cli-3 Questions

5

Don't know why 2 days ago my projects ( created via vue create ) stopped working - in Chrome i get Invalid Host Header and WDS Disconnected errors. In cmd everything compiles properly( npm run ...
Fourway asked 23/12, 2018 at 20:4

3

Solved

I'm building a web component using the following command : vue-cli-service build --target wc --name my-element 'src/components/mycomponent.vue' I would like to use Vuetify inside of this compone...
Pinko asked 2/4, 2019 at 5:1

19

Solved

I've tried all of the solutions out there but none seem to work for me. I just want to store some values in a .env file within my Vue app but simply trying to log process.env returns an empty objec...

4

Solved

Edit: This looks like a duplicate of this Unresolved Question. Do I mark this as answered, or delete? I am using InjectManifest from workbox-webpack-plugin inside a Vue CLI 3 app. The custom servi...

3

I have a Vue Cli 3 project with @vue/cli-plugin-pwa plugin installed and configured (in vue.config.js), but when I run vue-cli-service build --modern no manifest.json is generated based on my confi...
Bengal asked 25/11, 2018 at 1:33

2

Solved

I already have a global node_modules folder in /usr/local/lib/node_modules, but I just found there is also a ~/node_modules folder under my home folder. Can I delete this one? I execute node -e &qu...
Mydriatic asked 27/11, 2018 at 9:57

3

I am not an expert in Vuejs or Vuecli, but I do manage to get stuff working. I had a project i worked on before using Vuecli3 and webpack and now when I opened it after few weeks to make changes, i...
Elisabetta asked 27/1, 2019 at 10:1

16

Solved

I just used the command line (CLI) to initialize a Vue.js project. The CLI created a src/components and src/views folder. It has been a few months since I have worked with a Vue project and the fo...
Joyjoya asked 14/6, 2018 at 20:57

5

Solved

After identityserver authentication when it redirects to my application, it gives Exception: Correlation failed. Unknown location Now because I am using SPA. This route is definitely not there. ...

16

I have a Vue project generated by the Vue cli 3 and my hot reloading suddenly stopped working in my browsers. Changes made to the code are still picked up by the terminal, however, my browser is no...
Schizophyceous asked 3/12, 2018 at 8:19

6

I have a project that's been running perfectly for a few months now, able to run npm run serve with no problem. I have to terminate and run the command again whenever I switch networks, but that ha...
Radioscope asked 26/3, 2019 at 2:26

1

I wanna the production code is not minified in dist/ with @vue/cli 4.1.2 1、first try set vue.config.js module.exports = { chainWebpack: config => { config.optimization.minimize(false) } } ...
Sunsunbaked asked 31/12, 2019 at 6:30

6

I'm building a desktop app using electron and vue, things went normal running the app in dev mode and building it untill the last building by running electron:build but I keep getting this error of...
Earlap asked 8/5, 2019 at 11:19

14

Solved

I've been reading the official docs and I'm unable to find anything on environment variables. Apparently there are some community projects that support environment variables but this might be overk...
Roundabout asked 13/6, 2018 at 4:2

4

Solved

I installed vue-cli 3. I tried creating a vue app with vue create but I get a no such file error. ~$ vue create hello-world bash: /usr/local/bin/vue: No such file or directory Installing vue/cli3 ...
Alleneallentown asked 14/10, 2019 at 23:35

9

Solved

everything was installed correctly. but whenever I try to create project, it says "'vue' is not recognized as an internal or external command". I installed and re-installed but didn't work. npm was...
Aspersorium asked 6/6, 2019 at 9:31

3

Solved

I have 2 Vue applications and they both need to use some common pages and assets (scss files, icons etc.). The pages they need to share are full pages with access to vuex store and async calls. W...
Sexy asked 19/2, 2019 at 7:52

2

I'm trying to add internationalization on my Vue.js project using Vue I18n. I'm using the documentation (i.e. http://kazupon.github.io/vue-i18n/guide/sfc.html#basic-usage), but I've got the follow...

1

I create a backend project in a scripting language and a frontend using Vue-CLI. The project is tested in the domain example.localhost. In the test environment I run the Vue-CLI development version...
Encephaloma asked 10/12, 2019 at 11:38

23

Solved

I am getting an error when trying to run npm run serve. At first I installed node.js then vue as well as vue/cli. But when I am trying to run server as -> npm run serve at that time I'm getting err...
Noise asked 27/10, 2019 at 13:27

2

I'm writing unit test for for vue cli 3 using Mocha and chai. I have tried mocking localstorage. but still getting this error - 'localStorage is not defined'. Can anyone please help me here? My co...
Innermost asked 28/2, 2019 at 9:43

2

Solved

In the webpack.config.js file we can set entry file as below. module.exports = (env = {}, argv = {}) => { const config = { entry: { main: './src/js/main.js' }, } } But in vue.config....
Sapwood asked 12/10, 2018 at 5:10

2

Solved

Hello there I would like to know how can I change the <h3 id="score"> innerHtml when the button is clicked. In Vanilla Javascript I can access the element with: const score = document.que...
Sopor asked 11/8, 2019 at 9:35

1

I would like to just type check vue files without building the whole application. Any way to do this? I know vue-cli-service serve and vue-cli-service build will do typecheck by fork-ts-checker-we...
Turntable asked 7/5, 2019 at 15:38

2

Solved

I just started using Vue.js and Vue CLI and i'm facing an issue, i don't understand why i can't set the image dynamically from the scope but i can do it writing it directly in the HTML, obj.img is ...
Darra asked 10/10, 2018 at 22:31

© 2022 - 2024 — McMap. All rights reserved.