Laravel-mix: HMR not working on a fresh larvel app ('Cannot GET /')

Created on 28 Jun 2017  ·  4Comments  ·  Source: JeffreyWay/laravel-mix

Description:

Hi,
Trying to use hot module reload with vue. I get "Cannot GET /" when browsing to localhost:8080. I've rebooted, updated brew (node), npm and such. For information I have Valet set up on my machine.
I reference my scripts and css via mix blade helper.

Thanks very much for the hard work to make our lives easier !

Steps To Reproduce:

`
laravel new hot
cd hot
yarn
npm run hot

browse to http://localhost:8080
Error : 'Cannot GET /'
`

Most helpful comment

All 4 comments

What is your configuration in webpack.mix.js?

I left it unchanged as I wanted to eliminate a potential error on my part.

let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

Thanks so much !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amin101 picture amin101  ·  3Comments

Cheddam picture Cheddam  ·  3Comments

dtheb picture dtheb  ·  3Comments

mementoneli picture mementoneli  ·  3Comments

hasnatbabur picture hasnatbabur  ·  3Comments