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.

Invalid options: child "files" fails because [child "json" fails because ["json" must be an object]]

See original GitHub issue

Version

3.0.0-rc.5

Reproduction link

http://localhost:8001

Steps to reproduce

  • Install latest vue-cli via npm install -g @vue/cli
  • Check version vue --version, outputs 3.0.0-rc.5
  • Run vue ui

What is expected?

Normal outputs

What is actually happening?

$ vue ui
🚀  Starting GUI...
🌠  Ready on http://localhost:8001
Error: Invalid options: child "files" fails because [child "json" fails because ["json" must be an object]]
    at PluginApi.describeConfig (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/api/PluginApi.js:156:21)
    at module.exports.api (/Users/Doma/Developer/WebstormProjects/vue-locale/node_modules/@vue/cli-plugin-eslint/ui.js:3:7)
    at runPluginApi (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js:227:7)
    at plugins.forEach.plugin (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js:167:33)
    at Array.forEach (<anonymous>)
    at Timeout.setTimeout [as _onTimeout] (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js:167:15)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)

and the same stacktrace message repeats


Looks like something wrong with the plugins system, but Refresh Plugins API doesn’t help

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
terean-dspdcommented, Aug 1, 2018

And… step 1: npm update step 2: npm uninstall -g @vue/cli sted 3: npm install -g @vue/cli

Finaly helped me

1reaction
SevenOutmancommented, Jul 24, 2018

@yyx990803 The errors were thrown from @vue/cli-plugin-eslint@3.0.0-beta.15, @vue/cli-plugin-pwa@3.0.0-beta.15 and @vue/cli-plugin-e2e-cypress@3.0.0-beta.15, and are now resolved by manually upgrading them to latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my JSON Schema appear to not validate a child ...
This results in your oneOf asserting validation is successfull, because oneOf/0 passes and oneOf/1 fails. To solve this, you need to add "then": ......
Read more >
How to Fix The Invalid JSON Error in WordPress (Beginner's ...
This error could appear for a number of reasons. However, the most likely cause of it to occur is incorrect URL settings in...
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
JSON.parse() parses a string as JSON. This string has to be valid JSON and will throw this error if incorrect syntax was encountered....
Read more >
Understanding JSON Schema
JSON Schema is a powerful tool for validating the structure of JSON data. However, learning to use it by reading its.
Read more >
Understanding the "Objects are not valid as a react child" Error ...
age . Since it refers to the whole object in question, it causes the code to break. The error could also happen by...
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