694 questions
0
votes
0
answers
68
views
Can't resolve 'child_process', 'dgram', 'tls' in vue-cli library
When i do npm run serve i get multiple resolve errors:
More than 10 messages about can't resolve something of this ('child_process', 'dgram', 'tls') in @vue/cli-shared-utils.
My settings:
package.json:...
0
votes
1
answer
27
views
Why compiling occurs when making minor code changes while running npm run serve
Why does it compile when making small changes to the code while running
npm run serve
, and is this behavior normal? I would like to know if the server should recompile for every change, even if it ...
1
vote
0
answers
11
views
With Webpack bundling how to either import a file dynamically or not, depending on some process.env.VARIABLE
I would like to be able to tell the webpack bundler to import some file right away if process.env.SOME_VAR evaluates to true and to lazy-load (dynamically import) that file otherwise.
Something like ...
0
votes
1
answer
217
views
vue cli 3 ignore background image urls
Is it possible in vue cli 3 with typescript to ignore background image urls when compiling scss files? I am writing a SPA which will sit as a page inside a parent site and all the background images ...
0
votes
1
answer
446
views
Forbidden: /api/v1/token/logout/ "POST /api/v1/token/logout/ HTTP/1.1" 403 58
I am experiencing this problem following a tutorial and I can't identify the error in my "MyAccountView.vue" page. I tried changing to re_path and it did not work.
Forbidden: /api/v1/token/...
1
vote
1
answer
142
views
The current path, api/v1/users, didn’t match any of these
I am experiencing this problem following a tutorial and I can't identify the error in my "SignUpView.vue" page. I tried changing to re_path and it did not work.
Not Found: /api/v1/users
[...
1
vote
0
answers
371
views
ValidationError: Progress Plugin Invalid Options when compiling vue project
I am getting a nugging error message when trying to complile my vue project. This is the error message
ValidationError: Progress Plugin Invalid Options
options should NOT have additional ...
0
votes
1
answer
61
views
Vue/Cli Build custom Js
When I build with Vue/Cli, can I extract the files I want with the name I want?
main.js;
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './...
0
votes
0
answers
72
views
How to continue processing css files after the css-loader of vue-cli?
In the vue-cli webpack chain, I want to change the compiled css source code. For example, I need to change the url reference suffix of png in all the background in the css file to webp. I write a ...
1
vote
0
answers
258
views
allow optional chaining in vue by correct configuration of babel
I have vue project and i have installed few packages. When I do npm run dev it throws error for adding appropriate loader.
It seems like packages I have installed have `optional-chaining code and ...
0
votes
1
answer
683
views
"vue running in developer mode" warning appears even when running in production mode
I am running vue in production mode but i still get the warning of vue running in developer mode
the project is running fine and i can see that it running in production mode. but i am still getting ...
0
votes
1
answer
309
views
vue3-electron production build facing webpackJsonp not defined problem
I'm trying to build an electron app from a vue-cli3 project. The vue project itself works fine both in development and production. Everything works as well if I run a dev mode with npm run electron:...
0
votes
1
answer
7k
views
TypeError: Cannot set properties of undefined (setting 'message') in Vue
i'm new in Vue.js, so there are concepts that maybe i'm missing.
The thing is that i've been trying to do this for months, but i couldn't get a solution. What i'm trying to do is change the message of ...
0
votes
1
answer
328
views
How to use component with global register in Vue Cli3
This is my folder
+src
+components
+Logo.vue
App.vue
main.js
In my main.js I had been import the file
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
...
1
vote
1
answer
4k
views
Failed to resolve component in same folder Vue 3
I am using Vue 3 with class based components and Typescript. If I try to use a component inside another component I get this error:
[Vue warn]: Failed to resolve component: Button
If this is a native ...
2
votes
1
answer
6k
views
vue js import from node_modules
I am new to vue js and currently trying to import any vue plugin/component into other sfc .vue files for usage.
Currently I am using VS code with vue create project cli setup and in my main App.vue ...
0
votes
1
answer
624
views
cannot found file of fonts in vue
aim using vue cli 3,and
i have file inside of
iam writng my code in fonts.scss file and iam write like this
@font-face {
font-family: 'ElMessiri';
src: url('./fonts/ElMessiri/ElMessiri-...
0
votes
1
answer
114
views
How to update or show data of array in vue-cli
I have created a table which display the product data that was entered by the user and I have placed a column for operations, delete, modify, and details,
but what i don't know is how can I edit or ...
0
votes
0
answers
293
views
Vue - Webpack - Force scss @import to be chunked in to a shared file?
I'm currently experiencing a pattern where in Vue I have this in a number of different components. What I'm finding is that webpack is then going ahead and including the contents of src/assets/styles/...
0
votes
1
answer
399
views
Vue Cli 3 Npm Run Build Error: Callback was already called
Everything works fine until this error shows out. I can run npm run serve with no problem except npm run build.
Here's the error log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ...
0
votes
1
answer
148
views
I want to change visible button when array change on Vue.js
I want to toggle visible button when array changed. But I can't do it.What is the best way to do this?
Here is my example.
https://codesandbox.io/s/relaxed-poincare-vv6xh?file=/src/components/...
0
votes
1
answer
175
views
It is not clear which version of vue.js is being used
I installed npm install -g @vue/cli
After installation, I create a project vue create hello-world
After creating the project, I run the following command: npm list vue Returns `-- [email protected]. This ...
1
vote
3
answers
537
views
Data not rendered in image tag in vue js
Here I am trying to show image from data object in vue js. Here is my code
<a onclick="openModal()"><img src="{{product.productImageList[0]['name']}}"></a>
But ...
0
votes
0
answers
870
views
Vue cli 4.51 trouble building after deleting and reinstalling node_modules
I have a Vue CLI 3 project that used to build and serve just fine.
After deleing and reinstalling my node_modules folder. Now, when i run npm run serve, I get the following
Error loading C:\code\...
1
vote
1
answer
2k
views
Uncaught TypeError: Object(…) is not a function in internal Vue3
I have strange error, i don’t know what causing this but last time i develop my project was fine. After no reason my chrome browser lost its cache data (next day). when i run my vue3 project the error ...
0
votes
1
answer
30
views
The $ Does Not Convert Text To Code What Should I Do?
The $ Does Not Convert Text To Code What Should I Do?
if(this.rules.min && this.value.length < this.rules.min){
return 'Minimum length is ${this.rules.min}'
}
1
vote
1
answer
649
views
How to define a variable if it is undefined in Vue.js 3 CLI?
I'm on my way to create a WordPress theme using Vue.js 3 CLI.
The main problem was WP database connection but I've, it seems to be, solved it.
Here is an “obvious” problem that I can not solve for 2 ...
0
votes
1
answer
402
views
How do I edit vue-loader to support audio files?
this is my first question here so please let me know if you need more info.
I am working on a small project using vue CLI 3 and I want to add audio and audio controls but I get the following error:
...
2
votes
0
answers
733
views
How to investigate vague "js/chunk-venders... from Terser" undefined failure?
My Vue-CLI project is failing to create a production build:
⠏ Building for production...
ERROR Failed to compile with 1 errors ...
2
votes
1
answer
2k
views
How to place image address in array and use that array index in source VUE JS?
I’m new into vue js and I’m facing a little issue. I’m sure that its a minor issue as I’m new into it can’t able to solve it by myself. Any suggestion or solution will be acknowledge.
Thing is I want ...
0
votes
1
answer
284
views
How to pass dynamically created env var (vuecli-3) to npm run?
My objective is to be able to build micro apps from within one vue-cli project to have everything in one place. So far I'm building to different dist folders using dynamically created env var, like ...
0
votes
1
answer
348
views
Can't install less-loader in VueCLI3 project
Some pages of my project use less to render,so I run the npm command to install less and less-loader but find just less can successfully installed,for unknown reason, the less-loader keep falied to ...
0
votes
0
answers
108
views
error:in ./src/main.js export default (imported as 'Vue') was not found in 'vue' [duplicate]
CLI-3 working on my project and currently, I came across these errors, this is my first time using the Vuecli3 and I get this which makes my code not rendering on my screen.
error: WARNING in ./src/...
0
votes
1
answer
797
views
Why is bulma overriding my vue3 component css?
I'm using bulma with a vue cli 3 project, and I've included the bulma import as follows under index.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
require(...
2
votes
1
answer
3k
views
Vue 3 include local static files into index.html
<!DOCTYPE html>
<html lang="">
<head>
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin....
0
votes
1
answer
604
views
Vue CLI exclude js file from bundle
I have vue cli project. I want to exclude js files inside spesific folder using exclude rules, but not working.
Bundle file still have js code that i want to exclude.
I want exclude *.js files inside ...
1
vote
0
answers
4k
views
Unhandled error during execution of render function
I have been working on this project that tracks every country's COVID-19 stats. I have unfortunately ran into a bit of an obstacle. My code to follow.
<template>
<div class="...
0
votes
0
answers
223
views
I use electron11 vue-cli3 ,node-loader not work. who can hlep me?
node:14.15.4
npm:6.14.10
electron:11.2.2
in vue.config.js
vue.config.js
error
configureWebpack: {
resolve: {
extensions: [".js", ".vue", ".json", ".ts"...
0
votes
1
answer
1k
views
how to stop form submitting if form is invalid in vue3 cli compostion apis in vee validate
i am new to vue3 and composition apis.
there is problem with validating a simple form.
i am trying to stop form submission if form is not valid or not touched as it is vaild by default if inputs not ...
0
votes
1
answer
330
views
Unanble to use vue CLI 3
After installing vue CLI 3 I was unale to vue create my-app throwing this error zsh: command not found: vue
But when installing the vue CLI I notice this error:
npm WARN deprecated [email protected]: ...
1
vote
1
answer
469
views
How do i exclude a directory with mocking files from webpack build with vue.config.js?
I have a directory called mock at root which contains mocking data that I use to run the app in development mode. I would like to exclude them when i build for production. I notice that it is being ...
3
votes
1
answer
2k
views
Vue cli env without prefix VUE_APP
is possible to use env in vue cli without de prefix VUE_APP,
Example in .env without prefix VUE_APP:
API_MESSAGE_URL = localhost:5000/v1
0
votes
1
answer
1k
views
Animation cannot take place between different router views in Vue.js
Summary
I am looking for a solution to create an animation across two different router views in Vue. The problem I met is that when the browser change to another router view, it will re-render the ...
2
votes
1
answer
523
views
How can I configure Vue-CLI 3 to produce a page without JavaScript?
I have a static page that doesn't need JavaScript. I'm using vue-cli 3 and would like to pass the HTML file through webpack for the purpose of minification. However, this doesn't seem to be possible. ...
2
votes
2
answers
4k
views
Why vue-cli understand I've installed vue-cli-plugin-vuetify and vuetify-loader?
When I create a fresh vue-cli project via this command
vue create hello-word
and this command to install vuetify
vue add vuetify
Then I saw my git changes like this
Two new dependencies have been ...
0
votes
1
answer
547
views
Enable arcgis API JS popups with Vue CLI 3
I am trying to get popups from the ArcGIS API JS to display using the framework Vue-CLI 3.
But even with a simple sample code, I cannot make it work: Here is the code in vanilla JS:
<!DOCTYPE html&...
1
vote
0
answers
243
views
Vue cli code not running ine the command prompt
Trying out vue cli for the first time and I can't get to open the code from the command-prompt line into my visual studio through the cd my-app code ., command, I can only access it through the vue ui ...
0
votes
1
answer
620
views
Vue CLI 4 with bootstrap or Vuetify
Hey is it possible to use bootstrap or vuetify with Vue CLI 4 (Vue3)? I couldn't find any information on the vuetify site (says CLI 3 or higher) neither on the bootstrap site.
I tried to install it, ...
0
votes
1
answer
248
views
Vuejs: show data with day index on schedule
I want to show the schedule, with if condition. If the index in the loop is the same as the index day, then display 'index' else is '-'.
for now, this is my view:
My code:
<td v-for="(n, i) ...
1
vote
1
answer
1k
views
vue-cli devServer proxy bypass
I would like Vue CLI's dev server to return a string when a specific URL is fetched. For this, I wanted to use webpack dev-server's bypass option. (webpack docs)
I tried this:
devServer: {
proxy: {...