Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
492 views

npm error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object

I got this error after npm run dev TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object at new NodeError (node:internal/errors:387:...
Artur Geghamyan's user avatar
0 votes
0 answers
44 views

Optimizing Deploy Time for Large Laravel/Vue Monolith - Offload Build to Separate Server?

I’m working on a large monolithic project using Laravel and Vue, and I'm running into a major issue with CPU usage during deployments. Currently, whenever I run npm run prod, the CPU on my server hits ...
Rafael D'Arrigo's user avatar
0 votes
0 answers
30 views

How to find loadsh dependency

I am running an older version of laravel (6) in combination with vue2. I recently received a vulnerability alert regarding loadsh. I have tried to look for the package and could not find it either in ...
Jeremy Burchwell's user avatar
0 votes
2 answers
289 views

404 (Not Found) bootstrap in app.js with Laravel 10 + Vite

I'm using Laravel 10 + Vite to develop my app. But when I use Vite build, and load to my blade such as: @vite('resources/js/app.js') I got error 404 not found in Bootstrap. Here's my app.js on /...
Sterli's user avatar
  • 57
0 votes
0 answers
152 views

i can't run npm install in my laravel 10 project

I want to install vue in my Laravel project so I run this command npm i vue-loader@next vue@next vue-router@next but it gives me the same error in the image above and I try to do just npm I and it ...
Zemmari Azzedine's user avatar
0 votes
1 answer
3k views

High CPU Usage and Heap Out of Memory Issue during npm run build in Laravel with Vue.js using Vite

I am facing a critical issue while working on a Laravel project with Vue.js using Vite as the build tool. When attempting to execute npm run build, the CPU usage spikes to 100%, and eventually, the ...
VijaySolanki's user avatar
0 votes
1 answer
100 views

making changes in js file in dependency in laravel vuejs app

In my laravel vuejs app, i have installed "vue3-easy-data-table" and there are 2 files "vue3-easy-data-table.js" and "vue3-easy-data-table.js.map" inside node_modules....
Rohit A's user avatar
  • 11
1 vote
0 answers
328 views

npm run dev do not update any CSS or JS changes

I work on a local server (development) with apache/laravel/vuejs/tailwindss and vite.js. I try to run npm run dev but It failed with this error message : Vite manifest not found at I fixed this error ...
krifur's user avatar
  • 890
0 votes
1 answer
56 views

Issue with vue when running npm prod

Site works fine on local and dev server when using npm run watch-poll, however after using npm run prod, my site just displays a blank page and gives the following output in console: Uncaught ...
ptmb's user avatar
  • 197
1 vote
0 answers
321 views

Vite failes to install vue-select-3 in Laravel 10

I am trying to install vue-select-3 in a Laravel-10 project which uses vite and vue-3. I installed npm i vue-select-3 from npm and successfully imported the scss @import "vue-select-3/src/scss/...
AntonyMN's user avatar
  • 895
1 vote
0 answers
71 views

How to make my project build automatically by clicking a button on the front-end

I'm making a custom CMS for a client. They want the possibility to change all the text in the app. After changing some fields, the app needs to rebuild. I'm using Laravel x vue x Inertia This is my ...
Andries De Baere's user avatar
0 votes
1 answer
72 views

Webpack.mix.js file separate module wise but not generating files in public folder

I have a Laravel project with a large webpack.mix.js file in the root directory that is nearly 5000 LOC. To organize the file and improve maintainability, I've separated it into individual modules ...
Shubham Negi's user avatar
0 votes
0 answers
44 views

Use of default with require function in vue.component function

when we are writing the code to import the Vue components in our app.js file then we have to write a function -> Vue.component('homepage-component',require('./components/HomepageComponent.vue')....
Yash Raj Mishra's user avatar
0 votes
0 answers
39 views

VUE Js Cannot Scroll using router link

My Page View cannot be scroll on mobile view if it was loaded from router link from different page, need to be refreshed then it can be scrolled. this is how I call the page <router-link :to="...
Eldridge Rexroy's user avatar
0 votes
1 answer
386 views

unable to perform npm installations in laravel vue project

I am performing npm install for my laravel vue project. But npm install is showing following errors: gyp verb find Python Python is not set from command line or npm configuration gyp verb find Python ...
pioneer321's user avatar
0 votes
1 answer
862 views

VueJs:Laravel- Add loading spinner that shows in front of the page while all data is loading

I want to add the loading spinner until data is not loaded. For this I have created a loading component.vue <template> <div class="preloader" v-if="show"> &...
Anvita Rastogi's user avatar
0 votes
1 answer
347 views

error when running npm run dev on laravel + inertia + linux

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'dev' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'predev', 'dev', 'postdev' ...
Vinicius Bomfim's user avatar
0 votes
0 answers
173 views

Error when compiling vue and tailwind with npm run dev [Laravel 9]

I'm trying to install Vue 3 and TailwindCSS into my laravel project. Here's what I did, first, "npm install vue". Then I install Tailwind with "npm install -D tailwindcss@latest ...
Fathul Amin's user avatar
0 votes
1 answer
486 views

Getting a "o is not a function" error only when doing a production build in vue 2.7.14

I'm working on a Laravel 5.7 project that has been through a few different developers. Recently one of the devs did an npm update that caused a few issues. I've got most all of those issues cleaned ...
brandonperdue's user avatar
1 vote
0 answers
175 views

Docker gives error Specify configs in the ini-formatted file: /root/.npmrc

When I tried to build docker container, it throws error like 2022-11-19 06:26:39 Specify configs in the ini-formatted file: 2022-11-19 06:26:39 /root/.npmrc 2022-11-19 06:26:39 or on the command ...
Prathyush Lal's user avatar
0 votes
1 answer
574 views

Vue 3 with Laravel Blade template doesn't work on production build

I'm trying to use Vue 3 SFC with template inside regular Laravel Blade file like this: Test.vue <script setup> import { ref} from 'vue'; const testValue = ref('Works'); </script> app....
Sc00rpY's user avatar
  • 63
0 votes
3 answers
712 views

Laravel with Vue getting some error after run npm install

This is my project that uses the old package and I trying to set up for development to update some feature functions When running npm install I am getting the error message. I use the Laravel 5.8 Node ...
devit chea's user avatar
0 votes
1 answer
2k views

Laravel Sail + Vue 3 best practice

I created my first Laravel Sail yesterday but I've a tiny problem with Vue because creating a frontend in a separated folder caused some headache to me. As there are two different package.json one in ...
mbnoimi's user avatar
  • 440
0 votes
1 answer
658 views

npm run watch removes content in mix.manifest.json

Please help. I am developing a project with Laravel and Vuejs. When I do npm run watch, contect is removed from mix.manifest.json and I see only 2 lines. This is my modified mix.manifest.json { ...
BkenMedia's user avatar
79 votes
6 answers
86k views

Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated

How can I solve this warning when creating laravel project? Steps to replicate: composer create-project --prefer-dist laravel/laravel example cd example composer require laravel/ui php artisan ui vue ...
rhemmuuu's user avatar
  • 1,189
3 votes
2 answers
7k views

Laravel 9 Install vue router for vue 2.6.12

I try installing vue router with run command "npm install vue-router" but then showing error like this: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! ...
Riandi geek's user avatar
0 votes
1 answer
2k views

Laravel mix build stopped after a time and very slow

I have an application built with Laravel 8 and Vue 3 (in the same project) which is running with laravel mix. I am running the app with docker with different containers. Laravel part is running, but ...
Adrian's user avatar
  • 52
0 votes
2 answers
2k views

Laravel + Vue js Deploying on Shared hosting

I have a Laravel project that already deployed on shared hosting server but now I just want to add Vue.js component to that project. Problem is when I was deploying project I didn't install the npm. ...
L Wije's user avatar
  • 16
0 votes
2 answers
1k views

Laravel9 with Vue2

I installed Laravel and Vuejs with commands laravel new blog composer require laravel/ui php artisan ui vue npm install vue-router npm install app.js window.Vue = require('vue').default; import ...
Parsa Haghighi's user avatar
1 vote
2 answers
162 views

How to figure it out on which mistake i made when i run npm run build?

I'm quite new to this VueJS things. And this is my first App creating a SPA with separated server-side app. I faced the problem right before deploying my app on a shared hosting. Simply, when i run &...
Ardya Reyhan's user avatar
0 votes
0 answers
98 views

I got an error when running npm run watch. How to fixed this error. Please help me

ERROR in ./resources/js/App.vue 1:0 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. ...
Marvin Villaver's user avatar
0 votes
1 answer
89 views

Installing Vue 3.x In LVM Stack Using Webpack and NPM

I'm having a difficult time getting Vue to work in a blade.php page I have in my laravel website. Here is the blade page code: <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()-&...
brocksprogramming's user avatar
0 votes
1 answer
1k views

Can't compile VUE.JS with 'npm run dev' and 'npm run watch' command

I'm working on a project which is already developed by someone. The project is working fine but the thing is I need to make a few changes to vue code and to observe those changes I need to run the '...
Muhammad Khan's user avatar
0 votes
2 answers
70 views

Error while running npm command with permission error

I have my hosting on digitalocean droplet and my website is built in laravel when i try to run following command then attached error occures. command that i am running from root user. npm run dev Do ...
Wajahat's user avatar
  • 53
0 votes
0 answers
25 views

Npm run watch is compiling but I can't load page [duplicate]

I am using Laravel 8 + Vue. When I use php artisan serve it loads my page on http://127.0.0.1:8000. But when I use npm run watch it compiles (I get notification every time I change my code that it ...
Raskoljnikovic's user avatar
0 votes
0 answers
584 views

why 'npm run watch' not working correctly?

I have weird problem : I am working on Laravel/Vue project and when I run npm run watch it run correctly and it do compile stuff when i save. the problem is after ~3min when i save it do run as it did ...
Penny's user avatar
  • 164
3 votes
1 answer
2k views

How to use relative paths in Vue.js dev environment

I am having trouble with paths in the development and production environments in a laravel/vue.js project. In CSS files: Development environment npm run hot only accepts absolute paths in urls like /...
Artur Müller Romanov's user avatar
0 votes
0 answers
323 views

Variable becomes undefined after npm run production in Vue + Laravel project

I have a variable var self = this that becomes var self = undefined after npm run production. For context, this is a Laravel project that I am adding Vue to create a Homepage.vue component. First I ...
mlila_p's user avatar
  • 131
1 vote
1 answer
375 views

Invalid configuration object. Object has been initialized ('webpackbar')

In the previous week, I explored the world of Laravel + Vue development as I need some knowledge in this for my upcoming internship. I have created 2 other proof of concepts so far, and both didn't ...
Pimv_h's user avatar
  • 440
1 vote
1 answer
912 views

"npm run hot" in Laravel project throws invalid configuration error

I am having a laravel project with vue.js and when I try to execute npm run hot it throws an error. OS: Windows 10 PhpStorm: 2021.2 Vue.js: 3.1.5 Laravel: 8 Project dependencies (npm list --depth 0): ...
Artur Müller Romanov's user avatar
0 votes
1 answer
1k views

npm run dev error after bootstrap installation

Following a tutorial on vue and laravel, I managed to make a start. Everything was all right, I even implemented my first vue-component, untill I tried to install bootstrap. Now I get the following ...
M.Koops's user avatar
  • 155
0 votes
0 answers
278 views

can't run shell_exec(npm run production) from laravel controller on plesk server

So I'm just trying to run shell_exec(/opt/plesk/node/12/bin/npm run production) on a plesk server from my laravel php controller after editing some text and css codes through php so the vue files get ...
casper b's user avatar
1 vote
0 answers
682 views

Installing vue to laravel

i tried to install a vuejs to laravel like explained in this web page https://onlinewebtutorblog.com/how-to-install-vue-js-in-laravel-8-tutorial/ and in a video https://www.youtube.com/watch?v=...
user2301515's user avatar
  • 5,087
2 votes
2 answers
8k views

problem with laravel and vue.js | Error: Cannot find module

I recently got this error whenever I install vue in laravel using the following commands: composer require laravel/UI PHP artisan up vue php artisan ui vue --auth npm install && npm run dev I ...
svqo's user avatar
  • 55
0 votes
1 answer
300 views

Module not found: Error: Can't resolve '.views/Home'

I am trying to implement Vue router inside a Laravel application. I have installed vue and vue-router with npm install. This is my package.json, error message, and code
neven's user avatar
  • 33
0 votes
0 answers
510 views

errno -71 when installing NPM

I'm working with Laravel Homestead, and I'm trying to install npm to use Vue.js. Unfortunately, I've got the following error. npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/...
Ludovic Laisnez's user avatar
0 votes
1 answer
77 views

Very weird issue with npm

Hi I do not know what it's happening but I run the command: npm run watch and it displays /public/js/app.js 1.94 MiB /public/js/app [emitted] /public/js/app 0.js 40.4 KiB ...
Jesús Rafael Cova Huerta's user avatar
0 votes
2 answers
3k views

Issue when I try to execute npm install

when I run the command npm install, it displays this error: [log@server:www]$ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: ...
Jesús Rafael Cova Huerta's user avatar
0 votes
1 answer
3k views

Laravel 8 JetStream Unable to locate Mix file: /css/app.css on npm run prod

I have a Laravel 8 app running on Jetstream with Inertia Js and VueJs 3. When I run: npm run prod I receive this error: Exception Unable to locate Mix file: /css/app.css. (View: /var/www/html/mysite/...
Pascut's user avatar
  • 3,434
1 vote
2 answers
3k views

Run npm commandes on cpanel directly

I just upload script (laravel + vue.js) to CPanel , and every thing works fine, but i need to make some changes in vue js components. my question is there any method to run npm commandes directly on ...
Alhiane's user avatar
  • 131