mirror of
https://github.com/jehna/humanify.git
synced 2026-05-02 12:05:59 +03:00
[GH-ISSUE #398] Error missingPlugin: [ 'jsx', 'flow', 'typescript' ] #77
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davidmonterocrespo24 on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/jehna/humanify/issues/398
code: 'BABEL_PARSE_ERROR',
reasonCode: 'MissingOneOfPlugins',
loc: Position { line: 24310, column: 13, index: 700243 },
pos: 700243,
syntaxPlugin: undefined,
missingPlugin: [ 'jsx', 'flow', 'typescript' ]
}
Node.js v20.18.1
@0xdevalias commented on GitHub (Apr 12, 2025):
@davidmonterocrespo24 Would it be possible to provide a minimal code snippet that triggers this error?
@davidmonterocrespo24 commented on GitHub (Apr 12, 2025):
After running npm install -g humanifyjs
and running humanify openai --apiKey="your-token" obfuscated-file.js
I get that error. I think it's because it doesn't recognize that there's React code in the file.
I tried running npm install --save-dev @babel/plugin-syntax-jsx and it didn't work.
I also tried creating the .babelrc file.
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
But the same error always appeared.
@0xdevalias commented on GitHub (Apr 14, 2025):
@davidmonterocrespo24 By 'minimal code snippet' I mean a minimal example
obfuscated-file.jsthat causes this error to appear; so that I (or others) can easily trigger the error and debug it locally.(Also, if you use markdown fenced code blocks around your code when commenting it will display better and be easier to read)