[Bug]: Repl fails with `.method must be a string (While processing: "base$1")`
- Dominant language
- TypeScript
- Stars
- 777
- Forks
- 1.4k
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 3
Description
### 💻
- [ ] Would you like to work on a fix?
### How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
### Input code
https://babeljs.io/repl/#?browsers=ie%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=LYQwlgdgFAlA3AKAGYCZaIDYFMAuACMPAXjwAZEQBnATwgGM8kBXenMAewj1EljwG8EePHU6V22AHQZ2AcygAiABZgF8IXhAB3cPm268EJhgyJhoiOKkz5YdQF8ECKrQbNWHLqj6Dh-sPhGJmaaOgGGxqYaYADUMYiOQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Cstage-2&prettier=false&targets=&version=7.16.3&externalPlugins=%40babel%2Fplugin-transform-regenerator%407.16.0%2Cbabel-plugin-polyfill-regenerator%400.2.3&assumptions=%7B%7D
I added "babel-plugin-polyfill-regenerator" and now it says `[BABEL] /repl.jsx: .method must be a string (While processing: "base$1")`
### Configuration file name
_No response_
### Configuration
REPL issue
### Current and expected behavior
Current behavior: `[BABEL] /repl.jsx: .method must be a string (While processing: "base$1")`
Expected behavior: Either a readable error message indicating what I did wrong, if I did something wrong, or some output code.
### Environment
Not applicable
### Possible solution
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the linked Babel REPL reproduction and rerun it with the listed presets and external plugins, especially babel-plugin-polyfill-regenerator. Trace where the `.method must be a string` error is produced and verify the REPL either reports a readable configuration error or generates output code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100