question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Array of configurations gives vague validation error

See original GitHub issue

Using 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:closed
  • Created 7 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kentcdoddscommented, Jul 7, 2016

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.

1reaction
kentcdoddscommented, Jul 8, 2016

@sadafie would you be interested to makeapullrequest.com? The relevant code is here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found