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

Created on 21 Mar 2018  Â·  19Comments  Â·  Source: webpack-contrib/copy-webpack-plugin

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

Needs more info

Most helpful comment

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

All 19 comments

@var-ram can you create minimum reproducible test repo?

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

@var-ram did you ever figure this out? We are not running into this in our docker environment

@var-ram did you solve it? i met it too, here is my log:
Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 5 }
ℹ 「wdm」: Hash: 9b4248970c5b33c8f00b

did you solve it? i met it too, here is my log:
Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 3293 }
Could not find a matching event to end plugins FileManagerPlugin/Compiler/afterEmit { id: 3292 }

did you solve it? i met it too

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

+1 same issue here.

+1 same issue here.
Please reopen it.

+1, Could not find a matching event to end plugins Object/Compiler/afterEmit { id: 3455 }

+1, Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 2 }

Same issue Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 9 }

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

Same issue here

Please create reproducible test repo if somebody faced with it

Same issue here

Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 95 }

Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 1 }

same issue here

Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 1 }

Could not find a matching event to end plugins CopyPlugin/Compiler/afterEmit { id: 277 }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

padinko picture padinko  Â·  3Comments

BoldBigflank picture BoldBigflank  Â·  6Comments

richmeij picture richmeij  Â·  5Comments

ietabhi picture ietabhi  Â·  5Comments

stq picture stq  Â·  5Comments