Invalid configuration object
See original GitHub issueHello,
So this is the first time that I am using the ReactQL CLI and followed the instructions on how to install and start it. However, when I run npm start, I get the following error in GIT Bash
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration[0].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[0].entry['browser'] should be a string.
* configuration[0].entry['browser'] should NOT have duplicate items (items ## 1 and 3 are identical) ({
"keyword": "uniqueItems",
"dataPath": "[0].entry['browser']",
"schemaPath": "#/definitions/common.nonEmptyArrayOfUniqueStringValues/uniqueItems",
"params": {
"i": 3,
"j": 1
},
"message": "should NOT have duplicate items (items ## 1 and 3 are identical)",
"schema": true,
"parentSchema": {
"items": {
"minLength": 1,
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"data": [
"E:\\Coding\\SandBox\\reactql-tutorial\\node_modules\\webpack-dev-server\\client\\index.js?http://localhost:8080",
"webpack/hot/dev-server",
"E:\\coding\\sandbox\\reactql-tutorial\\node_modules\\webpack-dev-server\\client\\index.js?http://localhost:8080",
"webpack/hot/dev-server",
"react-hot-loader/patch",
"webpack-dev-server/client?http://localhost:8080/",
"webpack/hot/only-dev-server",
"E:\\coding\\sandbox\\reactql-tutorial\\kit\\entry\\browser.js"
]
}).
[non-empty string]
* configuration[0].entry['browser'] should be one of these:
non-empty string | [non-empty string]
* configuration[0].entry should be a string.
* configuration[0].entry should be an array:
[non-empty string]
* configuration[0].entry should be an instance of function
function returning an entry object or a promise..
Is there something I am missing? Even when I run npm install in the folder I created it gives me an error as well
$ npm install
> node-zopfli@2.0.2 install E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@8.7.0 (node-v57 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Program Files\Python36\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (E:\Coding\SandBox\reactql-tutorial\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (E:\Coding\SandBox\reactql-tutorial\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at E:\Coding\SandBox\reactql-tutorial\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Coding\\SandBox\\reactql-tutorial\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=E:\\coding\\sandbox\\reactql-tutorial\\node_modules\\node-zopfli\\lib\\binding\\node-v57-win32-x64\\zopfli.node" "--module_name=zopfli" "--module_path=E:\\coding\\sandbox\\reactql-tutorial\\node_modules\\node-zopfli\\lib\\binding\\node-v57-win32-x64"
gyp ERR! cwd E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli
gyp ERR! node -v v8.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe E:\Coding\SandBox\reactql-tutorial\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli\lib\binding\node-v57-win32-x64\zopfli.node --module_name=zopfli --module_path=E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli\lib\binding\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (E:\Coding\SandBox\reactql-tutorial\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Coding\\SandBox\\reactql-tutorial\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli
node-pre-gyp ERR! node -v v8.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe E:\Coding\SandBox\reactql-tutorial\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli\lib\binding\node-v57-win32-x64\zopfli.node --module_name=zopfli --module_path=E:\coding\sandbox\reactql-tutorial\node_modules\node-zopfli\lib\binding\node-v57-win32-x64' (1)
npm WARN enzyme-adapter-react-16@1.0.2 requires a peer of enzyme@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN less-loader@4.0.5 requires a peer of less@^2.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-zopfli@2.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-zopfli@2.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\James Singleton\AppData\Roaming\npm-cache\_logs\2017-10-23T04_45_01_991Z-debug.log
Any help would be greatly appreciated as all I have done is installed reactql globally and ran reactql new.
npm version: 5.4.2 node version: 8.7.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Invalid configuration object. Webpack has been initialised ...
This error usually happens when you have conflicting version (angular js). So the webpack could not start the application. You can simply fix...
Read more >Invalid configuration object. Webpack has been ... - GitHub
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. #914.
Read more >[webpack-cli] invalid configuration object. webpack has been ...
Webpack has been initialised using a configuration object that does not match the API schema is because the configuration file doesn't match the...
Read more >Webpack has been initialized using a configuration object
... --config=node_modules/laravel-mix/setup/webpack.config.js [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration ...
Read more >Invalid configuration object. Webpack has been ... - Reddit
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
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 FreeTop 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
Top GitHub Comments
If your system doesn’t have the required build tools, this will fail - period. No getting around that, since Zopfli uses a binary to compress assets.
If you don’t want/need asset compression, take the Zopfli plugin out of your kit/webpack/browser_prod.js config
It’s a 5 second fix.
The
npm install
error is due to missing Python (>v2.7 needed).node-zopfli
needs it to compile the extension. That should fix it.The Webpack config error, I’ve never come across. I need to test it on Windows and see what’s happening. Which version of ReactQL are you using? (
reactql version
)