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

Destructuring object cause error #65

Closed
apolkingg8 opened this issue Aug 31, 2015 · 5 comments
Closed

Destructuring object cause error #65

apolkingg8 opened this issue Aug 31, 2015 · 5 comments

Comments

@apolkingg8
Copy link

@apolkingg8 apolkingg8 commented Aug 31, 2015

It's fine:

import Foo from '../Foo'

//let {Foo1, Foo2, Foo3} = Foo

class Bar {
    yo() {

    }
}

export default Bar

but it's cause error:

import Foo from '../Foo'

let {Foo1, Foo2, Foo3} = Foo

class Bar {
    yo() {

    }
}

export default Bar

error msg:

$ esdoc -c esdoc.json
/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:121
          if (autoPrivate && this.name.charAt(0) === '_') {
                                      ^
TypeError: Cannot read property 'charAt' of undefined
    at Object.<anonymous> (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:121:39)
    at /Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:743:17
    at each (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:126:17)
    at Object.<anonymous> (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:740:7)
    at Object.API.(anonymous function) [as update] (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:166:18)
    at DocResolver._resolveAccess (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:119:20)
    at DocResolver.resolve (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:51:12)
    at CoverageBuilder.DocBuilder (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:57:42)
    at new CoverageBuilder (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/CoverageBuilder.js:33:81)
    at publish (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/publish.js:127:35)
@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Sep 3, 2015

@apolkingg8 Hi! Thanks for this issue!
This is ESDoc bug 😓 I will try to fix it. Please wait a little.

@apolkingg8
Copy link
Author

@apolkingg8 apolkingg8 commented Sep 3, 2015

Thank you! I'll stay tuned for good news 👍

@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Sep 6, 2015

I published ESDoc v0.2.5. Please use it.

@h13i32maru h13i32maru closed this Sep 6, 2015
@apolkingg8
Copy link
Author

@apolkingg8 apolkingg8 commented Sep 7, 2015

It works like charm! Thanks for this awesome project! 🍺

@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Sep 7, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.