options[0] has an unknown property ‘from’. These properties are valid:
object { patterns, options? }
at validate (/Users/gurudath/webpack-three-js-template/node_modules/copy-webpack-plugin/node_modules/schema-utils/dist/validate.js:115:11)
at new CopyPlugin (/Users/gurudath/webpack-three-js-template/node_modules/copy-webpack-plugin/dist/index.js:172:5)
at Object. (/Users/gurudath/webpack-three-js-template/bundler/webpack.common.js:15:9)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/Users/gurudath/webpack-three-js-template/bundler/webpack.dev.js:2:29) {
errors: [
{
instancePath: ‘[0]’,
schemaPath: ‘#/additionalProperties’,
keyword: ‘additionalProperties’,
params: { additionalProperty: ‘from’ },
message: ‘must NOT have additional properties’,
schema: false,
parentSchema: {
definitions: {
ObjectPattern: {
type: ‘object’,
additionalProperties: false,
properties: [Object],
required: [Array]
},
StringPattern: { type: ‘string’, minLength: 1 }
},
type: ‘object’,
additionalProperties: false,
properties: {
patterns: { type: ‘array’, minItems: 1, items: [Object] },
options: {
type: ‘object’,
additionalProperties: false,
properties: [Object]
}
},
required: [ ‘patterns’ ]
},
data: { from: ‘/Users/gurudath/webpack-three-js-template/static’ },
children: [
{
instancePath: ‘[0]’,
schemaPath: ‘#/required’,
keyword: ‘required’,
params: { missingProperty: ‘patterns’ },
message: “must have required property ‘patterns’”,
schema: [ ‘patterns’ ],
parentSchema: {
definitions: [Object],
type: ‘object’,
additionalProperties: false,
properties: [Object],
required: [Array]
},
data: { from: ‘/Users/gurudath/webpack-three-js-template/static’ },
children: undefined
}
]
}
],
schema: {
definitions: {
ObjectPattern: {
type: ‘object’,
additionalProperties: false,
properties: {
from: {
type: ‘string’,
description: ‘Glob or path from where we copy files.’,
link:
minLength: 1
},
to: {
anyOf: [Array],
description: ‘Output path.’,
link:
},
context: {
type: ‘string’,
description: “A path that determines how to interpret the ‘from’ path.”,
link: ’
},
globOptions: {
type: ‘object’,
description: ‘Allows to configute the glob pattern matching library used by the plugin.’,
link:
},
filter: {
instanceof: ‘Function’,
description: ‘Allows to filter copied assets.’,
link:
},
transformAll: {
instanceof: ‘Function’,
description: ‘Allows you to modify the contents of multiple files and save the result to one file.’,
link: ‘GitHub - webpack-contrib/copy-webpack-plugin: Copy files and directories with webpack’
},
toType: {
enum: [Array],
description: ‘Determinate what is to option - directory, file or template.’,
link:
},
force: {
type: ‘boolean’,
description: “Overwrites files already in ‘compilation.assets’ (usually added by other plugins/loaders).”,
link:
},
priority: {
type: ‘number’,
description: ‘Allows to specify the priority of copying files with the same destination name.’,
link:
},
info: {
anyOf: [Array],
description: ‘Allows to add assets info.’,
link:
},
transform: {
description: ‘Allows to modify the file contents.’,
link:
anyOf: [Array]
},
noErrorOnMissing: {
type: ‘boolean’,
description: “Doesn’t generate an error on missing file(s).”,
}
},
required: [ 'from' ]
},
StringPattern: { type: ‘string’, minLength: 1 }
},
type: ‘object’,
additionalProperties: false,
properties: {
patterns: {
type: ‘array’,
minItems: 1,
items: { anyOf: [ [Object], [Object] ] }
},
options: {
type: ‘object’,
additionalProperties: false,
properties: {
concurrency: {
type: ‘number’,
description: ‘Limits the number of simultaneous requests to fs.’,
}
}
}
},
required: [ ‘patterns’ ]
},
headerName: ‘Copy Plugin’,
baseDataPath: ‘options’,
postFormatter: null
}