1,361 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
20
views
Stop Browsersync from opening a browser tab [webpack.mx.js]
Laravel Mix can use Browsersync to keep a browser updated while making code changes, and that's good.
But on every start, a new browser tab is opened, and after a few restarts, it's just crazy.
I'd ...
0
votes
0
answers
19
views
Laravel mix is creating nested assets folder for js file
I have set my public path to assets folder mix.setPublicPath(path.resolve("./assets"));
and than the oputput of the source files to:
mix.js("src/js/app.js", "js");
mix....
0
votes
0
answers
116
views
Laravel Mix error with resolve.extensions when building Fomantic UI
I'm trying to resurrect an older Laravel project (5.8.38) that used Semantic UI for styling the user interface. Since Semantic UI is no longer being developed, I'm also switching to Fomantic UI. I'd ...
1
vote
1
answer
181
views
laravel-mix and webpack: command not found
I'm working on resurrecting an older Laravel application. My package.json is non-controversial:
{
"private": true,
"scripts": {
"dev": "npm run development&...
0
votes
2
answers
408
views
Laravel Mix keeps compiling every second without stop with Tailwind v4
This is my first time using Tailwind v4, and as I understand it the installation has been dramatically simplified.
My typical workflow is to use PostCSS and Tailwind with Laravel Mix to compile the ...
0
votes
1
answer
1k
views
Laravel Mix don't build with Tailwind v4
When I use Laravel Mix with the mix watch command, changes in an imported scss file do not cause a rebuild if I include TailwindCSS
app.scss
@forward "tailwindcss";
@forward 'test.scss';
...
0
votes
1
answer
36
views
Laravel and Vue .env dynamic MIX_ Variables, with laravel mix
my problem is the following: I have a Laravel application where the variables in the .env file need to be dynamic. The issue is that when I compile it, the variables get hardcoded in the app.js file. ...
-1
votes
1
answer
64
views
npm run production stops at 43 percent
I'm working on this codebase that's using laravel mix and laravel 10.
npm run dev, development, watch and even hot are all running fine but npm run production stops at 43%.
I've tried all the ...
1
vote
1
answer
801
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:...
0
votes
1
answer
54
views
Webpack 4 - Cannot execute npm run watch command - Error: error:0308010C:digital envelope routines::unsupported
I'm no expert of Webpack with Laravel Mix. I'm working on an very old project with Webpack 4 and Laravel Mix. I know the best solution would be to upgrade all packages, but actually I want to get the ...
0
votes
1
answer
221
views
Webpack error when trying to run laravel-mix watch
I have the latest version of the laravel-mix, webpack as well as the rest of the dependencies in my project. Im using Mac M3 chip as my local machin and when I try to run "npm run watch", &...
0
votes
0
answers
186
views
How to exclude some vuejs components from being compiled with webpack?
I currently have a Laravel and Vuejs application in which I run the following commands when I need the build:
npm run dev
npm run watch
npm run production
It turns out that I compile everything found ...
-1
votes
1
answer
146
views
Mix watch does not update vue router files
I have an application which has the following configuration. Symfony (with laravel-mix) + Vue + Vue Router.
The problem: Webpack cannot find the changes applied in my Vue files which are loaded in the ...
0
votes
1
answer
84
views
Problem Moving Public Folder When Using Laravel Mix: I Get 404 Error
When running a project using Laravel Mix, I get a 404 and cannot access the pages.
I did composer install
I didn't create the project, it had a structure like this before.
main
-core
-app
-routes
...
0
votes
1
answer
77
views
Passing props when rendering using h() with children on php laravel-mix
I have case for vuejs component that need to be rendered using php with laravel-mix. Its accepting role props
export default {
name: 'ComponentOne',
props: {
role: [Number],
},
methods: {
...