[Bug]: Repl fails with `.method must be a string (While processing: "base$1")`
See original GitHub issue💻
- Would you like to work on a fix?
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, …)
Input code
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
I am getting a error because processing is messing up. - Replit
I checked console log and discovered that processing autogenerated code that doesnt work when my project did work. I will show the weird...
Read more >Error while compiling incremental system image with Flux #641
The script to create a sysimage in this repo throws the following error with PackageCompiler v2.0.2 while loading the project and module ...
Read more >Bug descriptions — spotbugs 4.7.3 documentation
This document lists the standard bug patterns reported by SpotBugs. ... When debugging tests that fail due to bad casts, it may be...
Read more >DFSMS Access Method Services Commands - IBM
Use Access Method Services to Define a GDG and JCL to Define a GDS in that ... set name specification and will result...
Read more >Bug Patterns - Error Prone
Defaults for AutoValue Builders should be set in the factory method returning ... Preconditions only accepts the %s placeholder in error message strings....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The REPL currently does not support plugin with required options. In this case, the
plugin-polyfill-regenerator
requires amethod: "usage-global" | "usage-pure" | "entry-global"
option. As a workaround you can usepreset-env
, which usesplugin-polyfill-regenerator
under the hood.I will move this issue to the website repo.
Oh, I didn’t notice the evaluate toggle. Actually it does work, because the REPL itself contains regeneratorRuntime.
But IMO the output code of the REPL should be the same as of babel on the CLI. I pasted it into another tab and got the error there.
Should I still open an issue?