Skip to main content

All Questions

1 vote
1 answer
193 views

import vuejs router component with webpack

In vuejs, when I import a component in the router as such: import('@/layout') it works fine and as expected. If one had to stringify the outcome, it would look like this: function () { return ...
Justin Farrugia's user avatar
1 vote
0 answers
834 views

Getting net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) when running Vue project

I have the following problem, my vue project used to run properly and not out of the blue it is giving me the error net:: ERR_CONTENT_LENGTH_MISMATCH 200 (OK) for the chunk-vendors.js file in my ...
atulvinod1991's user avatar
2 votes
1 answer
4k views

How to fix "eslint(no-unused-vars)" in vue script

I am trying to run a server in a Vuejs App but i have troubles with eslint message appreciate your help to fix them This is my Json file: { "name": "blog-frontend", "version": "0.1.0", "...
Israel Omar's user avatar
1 vote
1 answer
334 views

Vue JS router component - Cannot re-use JS file that uses webpack imports after navigating between routes

Alright, so this issue I'm having is a bit complicated but I'll try to be as clear as possible with what's happening here. First of all, I am using the latest Vue and Vue-Router in my application with ...
FightRay's user avatar
  • 134
0 votes
1 answer
643 views

VueJS Failed to mount component

I'm starting a new project in VueJS with Symfony Encore. Everything seems to be compiling correctly, except I can't get VueJS to work. I think i'm missing a plugin or something? This is my error in ...
Speedy059's user avatar
  • 669
31 votes
7 answers
57k views

[Vue warn]: Unknown custom element: <router-view> - did you register the component correctly?

I use Vue 2 in CLI mode with webpack-simple. I have following files: main.js: import Vue from 'vue'; import App from './App.vue'; import VueRouter from 'vue-router'; import Routes from './routes'; ...
Kalreg's user avatar
  • 1,032
0 votes
1 answer
551 views

Vue js split bundle into few files via Webpack

Can i split vue generation files via wabpack on few files. I need use login page without other component. If i have structure smth like this: components Login.vue Home.vue etc. In the build dir i want ...
Yevhenii's user avatar
  • 337
8 votes
4 answers
4k views

Vue router - cannot lazy load component - Unexpected Token

I am trying to lazy load the Login component for my login route. When building webpack I get: SyntaxError: Unexpected Token The Login.vue component works fine if I import and assign it the same way I ...
pymarco's user avatar
  • 8,215
1 vote
1 answer
1k views

Vue router. Failed to mount component

I'm using a Vue-cli webpack template (https://github.com/vuejs-templates/webpack) and everything was all right in my project, before I tried to use vue-router. Then it started to send this error: ([...
Eldar.Kin's user avatar
2 votes
1 answer
11k views

How to use multiple components on a Vue route

I am just starting out with Vue and am trying to use two components in a route - a navbar and some sales data. Laravel mix is bundling the assets with Webpack, and npm keeps failing. index.php <...
DatsunBing's user avatar
  • 9,084
0 votes
1 answer
3k views

[Vue warn]: Cannot find element — empty container is rendered

I am trying to learn Vue 2 framework and I am stuck with this error. I have the following scripts responsible for the functionality of my application: main.js import Vue from 'vue' import VueRouter ...
user avatar
7 votes
2 answers
24k views

Vue.js ready() method doesn't get called in vue component

I'm using Webpack bundler to serve Vue 2.0 based frontend. The problem is that method ready in components doesn't get called. Do I need to add some extra watch on component or something like that? My ...
Luke's user avatar
  • 2,400