codesandbox / codesandbox/codesandbox-client
Missing undefined check in Angular template
Open
Nobody has claimed this yet.
🐛 Bug
💥 Crash Report
Needs More Info
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
💥 Crash Report
What were you trying to accomplish when the crash occurred?
Please use this issue template to describe what you were doing when you encountered this crash. While we are able to fill in some details automatically, it's not always enough to reproduce!
Link to sandbox: [link]() (optional)
Crash Details
Environment
| Browser | Version | Operating System | CodeSandbox Version |
|---|---|---|---|
| chrome | 74.0.3729 | Windows 10 | 72d987691 |
Error Message
TypeError: Cannot read property 'parsed' of undefined
TypeError: Cannot read property 'parsed' of undefined
at l.getEntries (https://codesandbox.io/static/js/default~app~embed~sandbox.993e26d54.chunk.js:1:22608)
at je (https://codesandbox.io/static/js/app.f69cc7b3e.js:266:591398)
at a.cb (https://codesandbox.io/static/js/app.f69cc7b3e.js:266:827121)
at a.runScope (https://codesandbox.io/static/js/vendors~app.597f527d1.chunk.js:1:1041354)
at a.evaluate (https://codesandbox.io/static/js/vendors~app.597f527d1.chunk.js:1:1041792)
at Object.onGetFunction (https://codesandbox.io/static/js/vendors~app.597f527d1.chunk.js:1:1031360)
at Object.get (https://codesandbox.io/static/js/vendors~app.597f527d1.chunk.js:1:1155064)
at https://codesandbox.io/static/js/app.f69cc7b3e.js:266:1305149
at ua (https://codesandbox.io/static/js/common.06f11edc9.chunk.js:1:1781090)
at Ka (https://codesandbox.io/static/js/common.06f11edc9.chunk.js:1:1789355)
in Unknown
in div
in mm
in div
in elements__Opener
in div
in Unknown
in DropTarget(Component)
in div
in mm
in div
in elements__Opener
in div
in Unknown
in DropTarget(Component)
in div
in Styled(styled.div)
in section
in Styled(styled.div)
in Unknown
in Files___StyledCollapsible
in Mm
in Pm
in div
in De
in Unknown
in div
in elements__Container
in Unknown
in WithTheme(Component)
in div
in t
in div
in t
in div
in div
in styled.div
in div
in elements__Container
in De
in yC
in Unknown
in Unknown
in t
in t
in div
in elements__Content
in n
in withRouter(n)
in div
in elements__Container
in Unknown
in withRouter()
in t
in Unknown
in De
in c
in t
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 crash in the linked CodeSandbox and inspect the stack trace around getEntries, where accessing parsed on undefined is reported. Trace that value back to the Angular template path and verify that the same interaction no longer throws the TypeError when the value is undefined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100