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 'map' of undefined #1653

Closed
kaiyoma opened this issue Feb 29, 2020 · 1 comment
Closed

TypeError: Cannot read property 'map' of undefined #1653

kaiyoma opened this issue Feb 29, 2020 · 1 comment
Labels
package: typescript-estree Issues related to @typescript-eslint/typescript-estree triage Waiting for maintainers to take a look

Comments

@kaiyoma
Copy link

kaiyoma commented Feb 29, 2020

What code were you trying to parse?

import moduleInfo from './moduleInfo';

export { moduleInfo as info };

export * as actions from './actions';
export * as selectors from './selectors';

What actually happened?

TypeError: Cannot read property 'map' of undefined
    at Converter.convertNode (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:1225:64)
    at Converter.converter (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:72:29)
    at Converter.convertChild (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:144:21)
    at ...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:201:32
    at Array.map (<anonymous>)
    at Converter.convertBodyExpressions (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:199:14)
    at Converter.convertNode (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:434:32)
    at Converter.converter (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:72:29)
    at Converter.convertProgram (...\node_modules\@typescript-eslint\typescript-estree\dist\convert.js:47:21)
    at Object.astConverter (...\node_modules\@typescript-eslint\typescript-estree\dist\ast-converter.js:26:29)

Versions

package version
@typescript-eslint/typescript-estree 2.21.0
TypeScript 3.8.2
node 12.16.1
npm 6.13.4
@kaiyoma kaiyoma added package: typescript-estree Issues related to @typescript-eslint/typescript-estree triage Waiting for maintainers to take a look labels Feb 29, 2020
@bradzacher
Copy link
Member

we do not have support for 3.8 syntax yet.

#1436

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: typescript-estree Issues related to @typescript-eslint/typescript-estree triage Waiting for maintainers to take a look
Projects
None yet
Development

No branches or pull requests

2 participants