All Questions
54 questions
0
votes
3
answers
306
views
HTML5 History Mode from vuerouter not work in production
On my Laravel and Vue.js V2 project, I've implemented Vue Router v3 with History mode. It works perfectly on my development machine. However, as soon as I switch to production, I get the error message ...
1
vote
1
answer
91
views
Component not showing only on login
I have setup a Laravel(8.83.23) with Jetstream(2.7.5) and Inertia laravel(0.3.6)
Im using Vuejs(2.7.3) with vue-router(3.6.4) and it seem inertia-vue(0.5.12)
Everything work fine except for the ...
5
votes
1
answer
18k
views
Failed to resolve component: router-link and router-view
router-view and router-link components cannot be resolved in my app
I don't know what the problem is
attached the app code
it's a home page app with something like a navbar to route to the vue ...
0
votes
1
answer
759
views
Vue2 / vue-router / Laravel - router-view not showing a Vue Component
I'm running into a problem where my Vue component isn't showing via router-view, there are no Vue warnings or errors in the console.
Here's the git: https://github.com/woottonn/fullstack
Here's my ...
0
votes
1
answer
748
views
Vue Router horizontal scroll to hash not working
I want to use a button wrapped into router-link to scroll the viewport horizontally (100% to the right to a vue component. This works fine with anchor tags:
<a href="#about">
<...
3
votes
1
answer
971
views
VueRouter not scrolling to anchor tags
I am working on a Vue.js/Laravel8 project on a single page app and can't get VueRouter to get to scroll to the section I want. The page consists of different sections which are reachable if user ...
0
votes
1
answer
518
views
Method 405 is not allowed, but in the API routing I defined POST
I am creating a SPA with the help of Laravel and Vue and the routing has worked previously, but for some reason it is giving me this error now: "Method 405 is not allowed".
Here is the ...
0
votes
1
answer
404
views
Vue-Router only showing base route using Laravel Blade?
I'm switching from routing with Laravel to using Vue-Router on my application, and I can only get the base route to load using Vue-Router. I've seperated the routes into two files, public and private ...
2
votes
2
answers
3k
views
Laravel Vue — router-view not rendering
So i'm trying to learn about SPA by building one with laravel vue vue-router and vuex.
my problem is that router-view is not rendering at all no matter what i do and i'm starting to lose hope in here, ...
2
votes
1
answer
4k
views
Hello I use laravel & Vue js i author project it working fine but this error?
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See :// webpack . js .org/concepts#...
-2
votes
1
answer
234
views
Vue router is not loading the page in Laravel app
I am trying to load the vue router pages. Not sure what is wrong. Here is what I have done.
In router.js file I have
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import ...
0
votes
1
answer
696
views
Laravel: Vue-Router does not redirect to path
I am new to Laravel and Vue JS. I am trying to integrate vue in a laravel project and my vue-router is not working and I don't understand why. I am trying to go to the path /login but it just renders ...
0
votes
1
answer
430
views
Vuejs router won't load on live server
I have a Vue2/Laravel 7 project working locally on my server using http://examplesite.test. It's using Vue router and all is good. However when I load it on to a live server with the example URL ...
0
votes
0
answers
266
views
Cannot update data using vue.js in laravel
In my update form i have a file field that i want to update so i'm using following code and created a form object but when i pass form object i cannot get the data of form object in my controller.
let ...
1
vote
3
answers
5k
views
Vue with Laravel, passing null props
Is it possible to pass a null prop? I have defined a master component which takes user prop.
<div id="app">
<master :user="{{ $user }}"></master>
</div>
Prop is defined ...