copy-webpack-plugin: Logs console error : Could not find a matching event to end plugins Object/Compiler/after-emit

Used the plugin to copy static images to the dist folder :

new CopyWebpackPlugin([ { from: "src/images/", to: "images/", cache: true } ])

Console logs the following message only during production build :

Could not find a matching event to end plugins Object/Compiler/after-emit { id: 2287 }

The following is the debug log:

[copy-webpack-plugin] processing from: ‘src/images/’ to: ‘images/’ [copy-webpack-plugin] determined ‘images/’ is a ‘dir’ [copy-webpack-plugin] determined ‘src/images/’ to be read from ‘D:\xyz\src\images’ [copy-webpack-plugin] begin globbing ‘D:\xyz\src\images/**/*’ with a context of ‘D:\xyz\src\images’ [copy-webpack-plugin] found D:/xyz/src/images/logo.png [copy-webpack-plugin] determined that ‘D:/xyz/src/images/logo.png’ should write to ‘images/logo.png’ [copy-webpack-plugin] reading D:\xyz\src\images\logo.png to write to assets [copy-webpack-plugin] writing ‘images/logo.png’ to compilation assets from ‘D:\xyz\src\images\logo.png’ [copy-webpack-plugin] finishing emit [copy-webpack-plugin] starting after-emit [copy-webpack-plugin] adding D:\xyz\src\images to change tracking [copy-webpack-plugin] finishing after-emit

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 22 (3 by maintainers)

Most upvoted comments

I solved it,因为我在vue的method里多写了一个created

Seeing same issue (or at least same error message) over here…any resolutions?