Torch

Torch

Member Since 5 Years Ago

Experience Points
320
Total
Experience

4,680 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
4
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
320 XP
Jun
27
3 months ago
Activity icon

Replied to Mix Is Compiling To Empty Js File

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 it was there!

Activity icon

Replied to Mix Is Compiling To Empty Js File

@jaytee I have vagrant-winnfsd installed.

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"]

The part:

      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

Activity icon

Replied to Mix Is Compiling To Empty Js File

@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 MIX, and empty for the 4rd time it is run. That I can not just wrap my head around.

Jun
26
3 months ago
Activity icon

Replied to Mix Is Compiling To Empty Js File

@jaytee I don't knwo what exactly do you mean... to set NODE_ENV to development?

Activity icon

Replied to Mix Is Compiling To Empty Js File

Well.... as I suspected the problem is with filesystem. When NFS is active in homestead virtual it is not working:

In homestead.yaml

      type: "nfs"

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

Activity icon

Replied to Mix Is Compiling To Empty Js File

So I reinstalled everything (node_modules), Laravel Mix is up to date. No change.... issue still persists

app.js

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');

all these required files are just javascript + some jquery

My bootstrap.js is empty right now

Jun
25
3 months ago
Activity icon

Replied to Mix Is Compiling To Empty Js File

@marcorieser I am running it inside homestead

@jaytee no I am not using dynamic imports, or vue at all

Edit: I just tried again today after reboot... it worked 2 times i ran npm run dev... 3rd time it built empty js (before it at least last 2 weeks before the issue happen not after 2 compilations!!)

I am getting really furious

Activity icon

Replied to Mix Is Compiling To Empty Js File

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

Activity icon

Replied to Mix Is Compiling To Empty Js File

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.

Just reminder, I do not have problems with css, it is working correctly all the time. Problem is only with javascript.

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

Activity icon

Replied to Mix Is Compiling To Empty Js File

Hi @aurawindsurfing,

thank you for the answer. Yes I tried npm run dev, npm run watch, npm run production all same.

Mix does not display any error in CLI... it just emit the output normally as if everything was OK, even the size is there displayed as you can see, but the physical javascript file is empty.

.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)

More info: I have to restart whole PC to solve the issue (then it works OK for a while, and boom out of the blue the issue happen again) reloading homestead/vagrant does not help

Activity icon

Started a new Conversation Mix Is Compiling To Empty Js File

Laravel Mix Version: 4.0.7 Node Version 10.15.1 NPM Version 6.9.0 OS: Win 10 + Homestead

Hello,

I have a problem on windows (homestead virtual, winnfsd plugin installed) that after some while, and this "while" can be 10s or 10 days, laravel mix starts to compile empty javascript file.... less to css is working OK.

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');

Mix output

/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