Skip to main content

All Questions

6 votes
3 answers
15k views

How can I enable the console log in VUE-CLI during development

I have been trying to figure out how to console.log('whatever') (while learning some Vue.js development) in my methods in order to understand some behaviour of whatever I am doing here. I understand ...
Arp's user avatar
  • 1,088
6 votes
1 answer
1k views

How to configure Hot Reloading in Vue/Webpack to work on any test domain

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 (...
Gander's user avatar
  • 2,011
2 votes
1 answer
2k views

Vue CLI 3 target build lib exclude shared styling

I am currently working on a Vue.js project where i use the Vue CLI 3 to build components in lib mode like this: vue-cli-service build --no-clean --target lib --name ComponentName.vue. The components ...
Kim Boender's user avatar
0 votes
1 answer
208 views

Import and evaluate a node_modules script globally (Browser) in a vue project (created with vue-cli)

I'm having a vue project (v2.6, + vuex, vue-router, webpack), created by vue-cli (v3.11) - https://gitlab.com/Tech4Comp/eas.lit-ui/tree/a71b84b732b408d8b292918bc8e6db9f0a1133e6 I'm trying to include ...
Roy's user avatar
  • 313
2 votes
2 answers
3k views

How do you eventBus a bus to communicate updates to a view in a Vue component?

Listen for custom events for the bus in component b. However, after dispatching events in component a, it accesses component b. the listening function of component b is executed, but msg of data ...
BaiClassmate Xiao's user avatar
0 votes
1 answer
705 views

CandleStick Chart of vue-echarts is not rendering on reloading the page in vuejs

I am integrating the candle stick chart by using vue-echarts library in my vuejs project. First time, when I redirect to the page it works perfectly but when I reload the page it shows error "Error ...
Sukhpal Singh's user avatar
0 votes
1 answer
2k views

Serve Vue Cli 3.10.0 Project in a specific port

How can I serve Vue CLI project in a specific port always, say 8888? I tried the following options. Editing the serve script in package.json to vue-cli-service serve --port 8888 Updating the devServer ...
Nitheesh's user avatar
  • 20k
1 vote
1 answer
1k views

VueJS Form does not revert to original after cancel

I have an app where a user can manually delete text and file attachments in a post. It's working fine and the user can delete text and attachments in the post, however, the problem is when the user ...
redshift's user avatar
  • 5,247
0 votes
2 answers
59 views

Removing an item from array: Wrong item being removed

I have a page of posts with a list of media attachments. I want the user to be able to manually delete an attachment(s) when he clicks the "delete" link. This event is working, however, the problem is ...
redshift's user avatar
  • 5,247
6 votes
2 answers
18k views

Vuejs how to change element content using innerHtml

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....
Evan's user avatar
  • 2,507
0 votes
1 answer
255 views

Vue cli3 chunk particular file

I have a project that is built with vue-cli3 and i want to single out a particular file to chunk on its own for IIS reasons. Currently webpack chunks based on default settings. Chunks are also ...
user616's user avatar
  • 855
2 votes
2 answers
5k views

VueJS masonry layout

Currently, I'm working on the VueJS project and Its vue cli 3. I'm trying to implement MasonryJS to my Vue project, but I'm stuck. I could not understand how can I implement this kind of masonry ...
Momin's user avatar
  • 3,308
5 votes
1 answer
851 views

vue-router history mode on mac (localhost) throwing error on direct access

I'm testing out vue-router's history mode on localhost development, and I'm getting an error when I try directly access the URL: http://localhost:8080/map/2. When I get to the URL via a $router.push ...
A. L's user avatar
  • 12.7k
1 vote
2 answers
458 views

Cannot specify url in .env file vue cli 3

I'm referring to the documentation about environment variables in vue cli 3. I'm able to set it up and get simple variables to show up but my url in the .env file doesn't show up. Contents of the ....
aks's user avatar
  • 9,521
1 vote
1 answer
5k views

How to properly include scripts from bought theme in Vue.js

Recently, i bought theme from Themeforest (Keen) and trying to include scripts from theme in Vue.js application, but those scripts throws an errors. I've tried import those scripts using "import" in ...
Maxim Makarov's user avatar

15 30 50 per page