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

use babylon7 parse javascript: Cannot read property 'map' of undefined #448

Closed
peakchen90 opened this issue Oct 5, 2019 · 1 comment
Closed

Comments

@peakchen90
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Choose language: Javascript
  2. Choose parser: babylon7
  3. Type var a = 1 in the left editor
  4. See error: Cannot read property 'map' of undefined

Expected behavior
Don't throw an error

Screenshots
If applicable, add screenshots to help explain your problem.
image

Browser (please complete the following information):

  • OS: Mac OS 10.14.6
  • Chrome 77

astexplorer settings:

  • Selected parser: babylon7
  • Selected transformer (if applicable): none
  • Contents of the local storage key explorerSettingsV1 (code can be removed if you don't want it to be public)
{"showTransformPanel":false,"parserSettings":{"babylon7":{}},"parserPerCategory":{"javascript":"babylon7","htmlmixed":"vue"},"workbench":{"parser":"babylon7","code":"var a = 1","keyMap":"default","transform":{"code":"export default function (babel) {\n  const { types: t } = babel;\n  \n  return {\n    name: \"ast-transform\", // not required\n    visitor: {\n      Identifier(path) {\n        path.node.name = path.node.name.split('').reverse().join('');\n      }\n    }\n  };\n}\n","transformer":"babelv7"}}}

Additional context
Add any other context about the problem here.

@peakchen90
Copy link
Author

I just clear all localStorage, it works. 😆

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

No branches or pull requests

1 participant