laravel-mix Questions
6
When I try to compile React component with Laravel Mix in my Laravel project it raises error 2 lifecycle.
E:\MY PROJECTS\Samriddhi Institute> npm run dev
@ dev E:\MY PROJECTS\Samriddhi Institu...
Maury asked 17/9, 2021 at 6:14
2
I'm using Vue with Laravel Mix. In Vue version 2, I was able to do this:
1. resources/js/app.js:
import Vue from 'vue';
import MyComponent from './MyComponent';
Vue.component('my-component', MyCom...
Taneshatang asked 23/3, 2022 at 15:36
6
Solved
Guys can you please help me on this I have trouble run npm run dev for my Laravel Mix. I followed links below but still error exist. Do i have a problem on my OS? I tried to remove node_modules, ru...
Crosspatch asked 26/2, 2020 at 17:14
6
Solved
I would like to get access to an .env variable using Vue JS.
In my .env file I have added the 'MIX_' prefix to the var.
MIX_VAR=key
And then in the vue component, I have in the created():
cons...
Gibbs asked 13/9, 2018 at 14:29
1
I have a laravel (inertia/vue) app (that used laravel-mix until recently) with a pwa feature that I built up using pwa builder and workbox.
Following the change from laravel-mix to vite in the lara...
Monolayer asked 17/8, 2022 at 13:28
5
Solved
I've searched and searched and I can't find the answer to my problem on SO. So here's my issue. I'm trying to load jQuery Globally using Laravel Mix. I've tried modifying all sorts of files, and no...
Jenisejenkel asked 16/8, 2018 at 4:41
10
It seems that webpack gets stuck on
92% chunk asset optimization for about 30+ seconds to show a simple js/css change. This is too long for anyone sane to sit and wait that much of their life to se...
Askew asked 9/3, 2018 at 0:30
11
Does anyone have an idea why it throws the following error and how to fix it? I have also tried to reinstall all packages using npm install several times. Reinstalling NodeJS on Windows didn't work...
Malocclusion asked 14/1, 2021 at 11:46
6
Solved
I'm using Vue.js and Laravel-Mix, when I save the project I don't receive any notification like this :
I'm running npm run watch. My console doesn't display any errors / warnings when I compile....
Edson asked 10/4, 2018 at 13:51
6
Solved
Can you please help me on this I have trouble running npm run dev for my Laravel Mix. I followed the links below but an still error exists. Do I have a problem with my OS? I tried to remove node_mo...
Rightwards asked 17/2, 2018 at 10:27
3
Solved
I'm trying to run npm run dev on a Laravel project, but I get the following error.
Error: Cannot find module
'/home/faramarz/todo/node_modules/laravel-mix/setup/webpack.config.js'
And yes, there ...
Timothytimour asked 31/8, 2018 at 18:22
32
Solved
For my admin panel I extract all the assets including the manifest-json.js to mix.setPublicPath(path.normalize('public/backend/')).
All the files get correctly added to the backend folder, and the...
Taciturnity asked 17/7, 2017 at 21:11
7
Solved
I have installed a new Laravel 8 application, and then I ran...
npm install
Afterward, I ran...
npm run dev
I get the following error.
'mix' is not recognized as an internal or external command
...
Soothfast asked 18/1, 2021 at 17:33
3
Solved
I am trying to use feather icons in laravel enviroment, I thought i would do it through npm. Can someone help me understand how this work as I couldnt get it working. I am very new to working with ...
Crafton asked 27/1, 2019 at 14:4
2
What I want to create is a web application with Laravel Lumen and VueJS, where Laravel Lumen is used for an API and VueJS for a SPA. In the application I want an admin section, a small forum and th...
Ellissa asked 19/2, 2020 at 14:45
2
Suddenly I received the following error:
app.js:28823 Uncaught Error: Cannot find module 'os'
at webpackMissingModule (app.js:28823)
at Object../node_modules/laravel-mix/src/File.js (app.js:28823)
...
Scruggs asked 18/6, 2021 at 8:50
2
Currently I am loading all of my Vue components with require.context, this searches my components directory with a regex for .vue files. This works fine but I would like to load async components as...
Parlance asked 25/4, 2018 at 13:9
4
Solved
I have Laravel Mix 4.0.13 installed.
npm run watch works great, and running npm run hot it does seem to compile and detect my changes, recompiling.
However, nothing changes in the browser. In the...
Domel asked 7/2, 2019 at 9:15
6
Solved
I know there are several posts with similar questions but different approaches which do not seem understandable. I want to learn more and be able to develop several applications using React.js and ...
Modern asked 28/4, 2019 at 16:18
6
Solved
Any call to npm run produces this error:
$ npm run dev
> @ dev /project
> npm run development
> @ development /project
> cross-env NODE_ENV=development node_modules/webpack/bin/webp...
Konikow asked 4/1, 2019 at 20:49
2
Solved
I have load laravel project which runs fine with valet domain something.dev
Tried to implement browser sync with laravel-mix
mix.browserSync({
proxy: 'something.dev'
});
After running npm run ...
Prohibition asked 30/10, 2017 at 13:23
2
I have a CDN pointing to my base domain, there is 1:1 mapping basically. I'm trying to build my bundle on the server, and I want to load it using CDN URL. What I want to have after npm run build is...
Heliogabalus asked 28/4, 2020 at 11:7
3
Solved
I am trying to add a DateTimePicker using Tempus Dominus Bootstrap4. But I am getting the following error.
I use Laravel as a front-end. So I use laravel-mix.
my blade file is below
@extends('l...
Pender asked 30/3, 2018 at 19:28
1
I have a Laravel 8 project, with PHP7 and wanted to try out Laravel Breeze, but after installing according to Laravel Documentation, Tailwind styles are not being reflected on my login and register...
Hip asked 9/7, 2022 at 12:8
7
Solved
I'm trying to set up BrowserSync to work with my Laravel project. However, when I run npm run watch, localhost:3000 doesn't load. I'm not getting any compilation errors in the terminal. Interesting...
Schroth asked 18/8, 2019 at 17:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.