fkling / fkling/astexplorer

Cannot read properties of undefined (reading 'decoratorsBeforeExport')

Open
#676 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.5k
Forks
772
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
open this site bellow
https://astexplorer.net/#/gist/09113e146fa04044e99f8a98434a01af/80bef2b9068991f7a8e4f113ff824f56e3292253
An error occurred `Cannot read properties of undefined (reading 'decoratorsBeforeExport')` when your @babel/parser Settings
tokens option is selected.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
https://astexplorer.net/#/gist/09113e146fa04044e99f8a98434a01af/80bef2b9068991f7a8e4f113ff824f56e3292253
when your @babel/parser Settings tokens option is selected.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/48429995/202891986-bf99fef5-8080-40d4-90ee-0bb2e459afb2.png)

**Browser (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**astexplorer settings:**
- Selected parser: [e.g. acorn]
- Selected transformer (if applicable): [e.g. jscodeshift]
- Contents of the local storage key `explorerSettingsV1` (code can be removed if you don't want it to be public)
@babel/parser Settings tokens option is selected

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the linked AST Explorer reproduction and enable the @babel/parser Settings tokens option to reproduce the error. Trace the parser-settings path responsible for reading decoratorsBeforeExport; done means the option no longer throws and token output remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
devtools, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.