Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be one of these:
object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
The entry point(s) of the compilation.
Details:
* configuration.entry should be an object.
* configuration.entry should be a string.
* configuration.entry should NOT have duplicate items (items ## 1 and 2 are identical) ({
"keyword": "uniqueItems",
"dataPath": ".entry",
"schemaPath": "#/definitions/common.nonEmptyArrayOfUniqueStringValues/uniqueItems",
"params": {
"i": 2,
"j": 1
},
"message": "should NOT have duplicate items (items ## 1 and 2 are identical)",
"schema": true,
"parentSchema": {
"items": {
"minLength": 1,
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"data": [
"/Users/dennis/apps/jstraining/demos/mobx-demo/node_modules/webpack-dev-server/client/index.js?http://localhost:8080",
"webpack/hot/dev-server",
"webpack/hot/dev-server",
"webpack-dev-server/client?http://localhost:8080",
"/Users/dennis/apps/jstraining/demos/mobx-demo/app/main.jsx"
]
}).
[non-empty string]
* configuration.entry should be an instance of function
function returning an entry object or a promise..
- configuration.resolve.extensions[0] should not be empty.
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/dennis/.nvm/versions/node/v7.5.0/bin/node" "/Users/dennis/.nvm/versions/node/v7.5.0/bin/npm" "start"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `webpack-dev-server --devtool eval --progress --hot --content-base app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'webpack-dev-server --devtool eval --progress --hot --content-base app'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mobx-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --devtool eval --progress --hot --content-base app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mobx-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mobx-demo
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/dennis/apps/jstraining/demos/mobx-demo/npm-debug.log