laravel-mix: webpack-dev-server outputPath error

On command npm run hot I’m getting this error:

ERROR in [copy-webpack-plugin] Using older versions of webpack-dev-server, devServer.outputPath must be defined to write to absolute paths

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (8 by maintainers)

Most upvoted comments

Still having same problem with version:

$npm list webpack-dev-server
/home/sergi/Code/scool/curriculum_test
└─┬ laravel-mix@0.5.16
  └── webpack-dev-server@2.2.0 

@JeffreyWay please I think you have to reopen this issue

Fixed in 329ed0ccffb51d52111ec11359f2617c528c60c0

I get this error if I have a mix.copy() command in my webpack.mix.js, like this:

mix.copy('node_modules/vue/dist/vue.min.js', 'public/js' )

When I comment that out, it goes away.

The full error is:

chunk    {0} /js/app.js, /css/app.css (/js/app) 1.5 MB [entry] [rendered]
   [55] (webpack)/hot/emitter.js 77 bytes {0} [built]
   [56] ./resources/assets/js/app.js 1.52 kB {0} [built]
   [57] ./resources/assets/sass/app.scss 41 bytes {0} [built]
   [58] (webpack)-dev-server/client?http://localhost:8080 4.66 kB {0} [built]
   [59] (webpack)/hot/dev-server.js 1.57 kB {0} [built]
   [85] ./resources/assets/js/bootstrap.js 1.31 kB {0} [built]
   [86] ./resources/assets/js/vuex/store.js 13.7 kB {0} [built]
  [126] ./~/url/url.js 23.3 kB {0} [built]
  [128] ./resources/assets/js/components/CollationColumn.vue 1.65 kB {0} [built]
  [129] ./resources/assets/js/components/CollationInfo.vue 1.64 kB {0} [built]
  [130] ./resources/assets/js/components/CollationItemSearchModal.vue 1.69 kB {0} [built]
  [131] ./resources/assets/js/components/CollationLine.vue 1.64 kB {0} [built]
  [146] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
  [148] (webpack)/hot/log-apply-result.js 1.02 kB {0} [built]
  [149] multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./resources/assets/js/app.js ./resources/assets/sass/app.scss 64 bytes {0} [built]
     + 135 hidden modules

ERROR in [copy-webpack-plugin] Using older versions of webpack-dev-server, devServer.outputPath must be defined to write to absolute paths
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 698 kB [entry] [rendered]
        [0] ./~/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.eot 92 bytes {0} [built]
        [1] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
        [2] ./~/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.svg 92 bytes {0} [built]
        [3] ./~/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf 92 bytes {0} [built]
        [4] ./~/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff 93 bytes {0} [built]
        [5] ./~/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 94 bytes {0} [built]
        [6] ./~/css-loader!./~/postcss-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap&precision=8!./resources/assets/sass/app.scss 696 kB {0} [built]

Indeed I have. 0.8.8.