codesandbox / codesandbox/codesandbox-client
Showing errors in console for no reason in vue router project
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Error: Property or method "children" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
Description of the problem
I just tried to add a button and tried to console log 'this' or 'this.something' and got into these errors.
I dont see anything wrong with code tho.
How has this issue affected you? What are you trying to accomplish?
Link to sandbox: link (optional)
https://codesandbox.io/s/vue-routing-example-bx3mg
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | |
| Browser | All |
| Operating System | All |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the console error in the linked CodeSandbox vue-routing-example-bx3mg, focusing on the added button and logging of this or this.something. Compare the rendered component behavior with the reported “children” warning; done means the unnecessary console errors are no longer produced in the stated environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100