Skip to main content

All Questions

0 votes
0 answers
85 views

Vue components not loading but router-views loads normally

I'm trying to figure out why on earth I can load my component through router-view but not by calling the component itself. In my blade file when I write '<router-view />', It loads my ...
Mostafa Said's user avatar
  • 1,055
0 votes
1 answer
2k views

Passing Laravel route to vue component's Href or router-link

I'm creating a dropdown component with Vue 3 and importing it inside my Laravel 8 project. The dropdown works perfectly and looping over the categories in database as expected. The issue is that i ...
Mostafa Said's user avatar
  • 1,055
0 votes
2 answers
745 views

The vue <router-link> don't want to work as a link, it shows as a simple text. What I'm doing wrong?

I'm using vue js in laravel project. I want to make my project single page application, so I need vue routes. I installed the latest versions of vue-loader, vue-template-compiler, vue, vue-router, but ...
Ruben Kubalyan's user avatar
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 ...
user3706091's user avatar
2 votes
1 answer
1k views

Module not found: Error: Can't resolve './router'| Vue router

in search.js from this file: import {createRouter, createWebHistory} from "vue-router"; import SearchIndex from './components/omdb/SearchIndex.vue' const routes = [ { path: '/',...
Gianmarco Gagliardi's user avatar
0 votes
0 answers
401 views

Vue JS ERROR Component template should contain exactly one root element

While working on a VueJS component, you face the following error in your browser console (or in your JS linter output): Component template should contain exactly one root element. If you are using v-...
user avatar
1 vote
1 answer
2k views

Getting the following error "You may need an appropriate loader to handle this file type, e." after running the "npm run watch"

Geek's Need little help, any suggestion or hint will be highly appreciated. The thing is I'm trying to install Vue on Laravel. But after installing the Vue router I decided to compile everything using ...
Muhammad Khan's user avatar
-2 votes
1 answer
295 views

Need to print name instead of id in vue.js frontend and Laravel backend

Here is my CategoryController.php code... public function name($id) { $f = Category::findOrFail($id); $nm = $f->name; return $nm; } Here is my router. Route::get('/category/{id}', [...
Yazi's user avatar
  • 9
0 votes
1 answer
393 views

How to populated Vue drop down with nested objects

l have this json response and want to populate "name" with drop down Vue { "code": 200, "message": "OK", "payload": [ "grade&...
Asfos22's user avatar
  • 319
0 votes
0 answers
223 views

View router not working in laravel, it is compiling successfully but rendering blank page

Currently learning and using VueRouter for the first time in laravel. There are no errors but when I try to run the page it just appears blank. I've gone through the code and the tutorial i have been ...
edwrdcodeu's user avatar
1 vote
3 answers
2k views

Laravel-vuejs (Vue Router) Javascript not working in onchange url

In my project, when I move from page to page with <router-link>, JavaScript does not work, look at the image to understand what I mean. The first time when I refresh the page, everything works, ...
0xHttrackers's user avatar
-1 votes
1 answer
371 views

Laravel & Vuejs resources[CSS & JS] compilation problem

I am using a custom admin template for my project with laravel and vue. There are a lot of css and js files and I have included them in my master.blade.php file. So whenever i refresh the page (for ...
0xHttrackers's user avatar
4 votes
2 answers
1k views

routes content does not show in Vue-router and Laravel

Im following this YT tutorial, I followed the steps but it seems that the ExampleComponent does not show. The App.vue shows but not the route. Here are my code: app.js import Vue from 'vue'; import ...
Miro's user avatar
  • 405
1 vote
2 answers
745 views

jQuery not working in vue component when change route

I have an issue with jQuery script files is not working inside vue component but it working outside it, I found a solution to put all script files in script section inside vue component, but I'am ...
Fadi Sharif's user avatar
-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 ...
Hkm Sadek's user avatar
  • 3,209

15 30 50 per page