Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'forEach' of undefined #228

Open
chovyprognos opened this issue Apr 19, 2021 · 0 comments
Open

TypeError: Cannot read property 'forEach' of undefined #228

chovyprognos opened this issue Apr 19, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@chovyprognos
Copy link

chovyprognos commented Apr 19, 2021

Describe the bug
I'm getting this error on a few files: TypeError: Cannot read property 'forEach' of undefined

There is no line number associated, just the name of the file.

To Reproduce

I'm not exactly sure how this works yet so I don't know how to distill it down to a simple example.

I suspect the existing comments might be the issue:

        // This is required to update sexpr in parent component
        // So that if user saves it again,
        // Automatically correct the cohort in github
        this.$emit('change', this.foobar)

I have not added any vuese specific documentation to components yet. just ran the gen function.

Here is the full command with output:

$ npm run docs:gen       

> icarus@1.0.0 docs:gen
> npx vuese gen

🚨  The error occurred when processing: /Users/ettinger/www/icarus/components/cohort/QueryBuilder.vue
🚨  TypeError: Cannot read property 'forEach' of undefined
    at ObjectProperty (/Users/ettinger/www/icarus/node_modules/@vuese/parser/dist/index.js:664:28)
    at NodePath._call (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/path/context.js:55:20)
    at NodePath.call (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/path/context.js:42:17)
    at NodePath.visit (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/path/context.js:92:31)
    at TraversalContext.visitQueue (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/context.js:116:16)
    at TraversalContext.visitMultiple (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/context.js:80:17)
    at TraversalContext.visit (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/context.js:142:19)
    at Function.traverse.node (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/index.js:82:17)
    at traverse (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/index.js:62:12)
    at NodePath.traverse (/Users/ettinger/www/icarus/node_modules/@babel/traverse/lib/path/index.js:142:24)
@IWANABETHATGUY IWANABETHATGUY added the bug Something isn't working label Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants