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
-
![image](https://user-images.githubusercontent.com/60806549/191720655-92a50e74-0ced-413b-9581-410e6d7838b3.png)
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