Array of configurations gives vague validation error
See original GitHub issueUsing Webpack 2 and multi-configurations, I get the following output (shortened) and error:
[
{
"entry": {
"client": [
"/Users/sadaf/git_repo/mup-web/src/client.jsx"
]
},
"output": {
"path": "/Users/sadaf/git_repo/mup-web/build/locale/fr-FR",
"filename": "fr-FR.[name].js",
"publicPath": "//0.0.0.0:8001/"
},
"devtool": "eval",
"module": {
"preLoaders": [
{
"test": {},
"loader": "eslint-loader",
"include": [
"/Users/sadaf/git_repo/mup-web/src"
],
"exclude": "/Users/sadaf/git_repo/mup-web/src/assets"
}
],
"loaders": [
{
"test": {},
"include": [
"/Users/sadaf/git_repo/mup-web/src"
],
"loader": "babel-loader",
"query": {
"plugins": [
[
"react-transform",
{
"transforms": [
{
"transform": "react-transform-hmr",
"imports": [
"react"
],
"locals": [
"module"
]
}
]
}
]
]
}
},
{
"test": {},
"include": [
"/Users/sadaf/git_repo/mup-web/src/assets/css"
],
"loader": "style!css"
},
{
"test": {},
"include": [
"/Users/sadaf/git_repo/mup-web/src"
],
"loader": "json"
}
]
},
"resolve": {
"extensions": [
".js",
".jsx"
]
},
"plugins": [
{
"options": {
"0": "/Users/sadaf/git_repo/mup-web/src/assets/svg/**/*.svg",
"svg": {
"xmlns": "http://www.w3.org/2000/svg",
"style": "position:absolute; width: 0; height: 0"
},
"svgoOptions": {},
"name": "sprite.[hash].svg",
"prefix": "icon-",
"template": "/Users/sadaf/git_repo/mup-web/node_modules/webpack-svgstore-plugin/src/templates/layout.pug"
}
}
]
},
...
]
[1] "value" must be an object
Perhaps there is an error in my config (though it builds), but this error does not clearly point to the issue.
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Reactive Form Array - Avoid Validation Error when push new ...
When I push new elements to the Form Array, they're marked as invalid although they're untouched and pristine. I understand that's caused by...
Read more >Common validation errors when creating issue forms
The error occurs when a block does not have an attributes key or does not have a value key under the attributes key....
Read more >Integration Services Error and Message Reference
Hexadecimal code Decimal Code Symbolic Name
0x8002F347 ‑2147290297 DTS_E_STOREDPROCSTASK_OVERWRITINGSPATD...
0x8020837E ‑2145352834 DTS_E_ADOSRCUNKNOWNTYPEMAPPEDTONTEXT
0x8020838C ‑2145352820 DTS_E_XMLSRCSCHEMACOLUMNNOTINEXTERNAL...
Read more >Error Messages Explained - Manual - PHP
PHP returns an appropriate error code along with the file array. The error code can be found in the error segment of the...
Read more >Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My thought is that we should just do a check before validating the config. If it’s an array, then iterate through it and pass each item into the validator.
@sadafie would you be interested to makeapullrequest.com? The relevant code is here