在下面的代码中,我试图在类方法上应用装饰器。我将错误视为splitChunks: {
chunks: "async",
minSize: 30000,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
name: true,
cacheGroups: {
default: {
minChunks: 2,
priority: -20
reuseExistingChunk: true,
},
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10
}
}
}
如何解决此问题
TypeError: myfunc() takes exactly 2 arguments (1 given)