So this little b*tch was the problem:
owner: "vagrant" group: "vagrant"
after deleting it from
Homestead.yaml it is working OK again. I don't even know why ti was there!
@jaytee I have
I have the same project cloned and synchronized on 2 PCs. Only thing that is different as I can see is this homestead config
folders: - map: D:\Projects to: /home/vagrant/Code owner: "vagrant" group: "vagrant" type: "nfs" mount_options: ["nolock,vers=3,udp,noatime,actimeo=1"]
owner: "vagrant" group: "vagrant"
is not present in the config on PC where mix does work. Later I will try to remove it and let you know the results
@jaytee that did not solve the issue also (i was using watch-poll before and fsnotify did not help)
@munazzil I am sorry man, but jaytee is right. The problem I am facing is somehow different in nature from your proposed solution.
Anyway, I turned off NFS and web is running sufficiently fast so I am good for now, but it is indeed a very strange issue. What I find most strange is that with nfs turned on, the js file is compiled OK for 2-3 times when I run npm run dev, and empty for the 4rd time it is run. That I can not just wrap my head around.
@jaytee I don't knwo what exactly do you mean... to set NODE_ENV to development?
Well.... as I suspected the problem is with filesystem. When NFS is active in homestead virtual it is not working:
is the problem. If I remove it, everything started working again like a charm
So, now the task is to figure out why NFS is making these troubles
So I reinstalled everything (node_modules), Laravel Mix is up to date. No change.... issue still persists
require('./bootstrap'); require('./init'); require('./landing'); require('./wizzards'); require('./stream'); require('./profiles'); require('./search'); require('./grids'); require('./settings'); require('./manager'); require('./exams'); require('./shows'); require('./litters'); require('./messages'); require('./dogs');
My bootstrap.js is empty
Hi @munazzil ,
thanks, but I think it is not the same issue. I tried to include the file, but the output file by mix is still empty
Thank you guys for ideas,
but neither worked :/
The file is really empty, i checked in browser directly Deleting files also does not help, mix just creates new empty file.
I reinstalled node, did not help. I will try to reinstall mix, but this I don't want to do, as this means reinstalling all node_modules (if I understand correctly) and I had problems installing it in the first place
@AURAWINDSURFING - Hi aurawindsurfing,
thak you forthe answer. Yes I tried 'npm run dev', 'npm run watch', 'npm run production' all same.
'.version()' does not help, it is behaving the same with it.
This is not issue of cache of browser, I think it is some weird windows/virtual/file permissions problem connected with webpack (or maybe something completely different)
Laravel Mix Version: 4.0.7 Node Version 10.15.1 NPM Version 6.9.0 OS: Win 10 + Homestead
Here is my webpack.mix.js
const mix = require('laravel-mix'); mix.js('resources/js/app.js', 'public/js/app.js') .less('resources/less/app.less', 'public/css/app.css');
/css/app.css 78.8 KiB /js/app [emitted] /js/app /js/app.js 357 KiB /js/app [emitted] /js/app any ideas, where the problem could be?
Edit: I just found out that when this issue happen... mix.js works only if the output .js file is smaller then 30kB... If it is larger, it compiles to file that is empty... I am very confused
When I use another filename to compile to it works from start, but then again after some while it starts to behave the same
Well the thing is that I have a very complex query that selects my products. Then based on this complex query i need to do other things with the results (further reduce it based on other conditions, etc...)
Well, I need to change the concept of my code then... thank you
Thank you for clarification. Any tips/ideas how to workaround this? - to create one (complex) query and then modify it in the end slightly to fetch different results?
Maybe it's late and I am missing something obvious, but I am very confused. Can someone explain to me why this code
''' $products = Product::where('id',15);
$result = $products->get(); dd($result);
''' return 1 (correct) result
and this code ''' $products = Product::where('id',15);
$a = $products->where('id',1111); $result = $products->get(); dd($result);
''' returns zero? I can not do multiple "selects" on one predfiend query?
Thank you Jan