copy-webpack-plugin's error #16284
hellokey-key
started this conversation in
Ideas
Replies: 1 comment 6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
you can see the Configuration,if you 'npm run build', the terminal will get error ' this.patterns.map() Cannot read properties of undefined (reading 'map')' let us see the source of copy-webpack-plugin, it is show ``` this.patterns = options.patterns; ``` at line 185 , we console the result shows ``[ { patterns: [ [Object], [Object] ] } ]``, so it may be `` this.patterns = options[0].patterns;`` is perfect,Please see if it is correct. We look forward to your reply。
Beta Was this translation helpful? Give feedback.
All reactions