Laravel-mix: Running 'hot' complains about [chunkhash]

Created on 15 Mar 2017  路  5Comments  路  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: 0.8.2
  • Node Version (node -v): 6.4.0
  • NPM Version (npm -v): 4.4.1
  • OS: Darwin Kernel Version 16.4.0

Description:

Just tried running 'hot'. It complains about [chunkhash]:

Cannot use [chunkhash] for chunk in '[name].[chunkhash].js' (use [hash] instead)

Steps To Reproduce:

npm run hot

Possible fix

replace [chunkhash] with [hash] I guess.

stale

Most helpful comment

I had the same problem but little google solved my issue:

if (mix.config.inProduction) {
    mix.version();
}

All 5 comments

Changing chunkhash with hash still does not fix the issue, because after that navigating to localhost:8080 does not open any laravel route, it's just saying it could not find /

I had the same problem but little google solved my issue:

if (mix.config.inProduction) {
    mix.version();
}

having the same issue, neither of the above solutions works, still getting

 ERROR  Failed to compile with 2 errors                                                                               12:10:04 PM

 error  in [name].[chunkhash].js

Cannot use [chunkhash] for chunk in '[name].[chunkhash].js' (use [hash] instead)

 error  in [name].[chunkhash].js

Cannot use [chunkhash] for chunk in '[name].[chunkhash].js' (use [hash] instead)

laravel-mix: ^0.11.4
node: v8.1.4
npm: 5.3.0

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefensuhat picture stefensuhat  路  3Comments

RomainGoncalves picture RomainGoncalves  路  3Comments

mementoneli picture mementoneli  路  3Comments

Bomavi picture Bomavi  路  3Comments

rderimay picture rderimay  路  3Comments