[GH-ISSUE #398] Error missingPlugin: [ 'jsx', 'flow', 'typescript' ] #77

Open
opened 2026-03-03 13:52:49 +03:00 by kerem · 3 comments
Owner

Originally created by @davidmonterocrespo24 on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/jehna/humanify/issues/398

at Parser.parseStatementListItem (C:\Users\david\AppData\Local\Microsoft\Edge\User Data\Default\Extensions\njggknpmkjapgklcfhaiigafiiebpchm\humanify-project\node_modules\@babel\parser\lib\index.js:12412:17) {

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

Originally created by @davidmonterocrespo24 on GitHub (Apr 8, 2025). Original GitHub issue: https://github.com/jehna/humanify/issues/398 at Parser.parseStatementListItem (C:\Users\david\AppData\Local\Microsoft\Edge\User Data\Default\Extensions\njggknpmkjapgklcfhaiigafiiebpchm\humanify-project\node_modules\@babel\parser\lib\index.js:12412:17) { 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
Author
Owner

@0xdevalias commented on GitHub (Apr 12, 2025):

@davidmonterocrespo24 Would it be possible to provide a minimal code snippet that triggers this error?

<!-- gh-comment-id:2798386667 --> @0xdevalias commented on GitHub (Apr 12, 2025): @davidmonterocrespo24 Would it be possible to provide a minimal code snippet that triggers this error?
Author
Owner

@davidmonterocrespo24 commented on GitHub (Apr 12, 2025):

Would it be possible to provide a minimal code snippet that triggers this error?

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.

<!-- gh-comment-id:2798410029 --> @davidmonterocrespo24 commented on GitHub (Apr 12, 2025): > Would it be possible to provide a minimal code snippet that triggers this error? 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.
Author
Owner

@0xdevalias commented on GitHub (Apr 14, 2025):

@davidmonterocrespo24 By 'minimal code snippet' I mean a minimal example obfuscated-file.js that 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)

<!-- gh-comment-id:2800615268 --> @0xdevalias commented on GitHub (Apr 14, 2025): @davidmonterocrespo24 By 'minimal code snippet' I mean a minimal example `obfuscated-file.js` that 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](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks) around your code when commenting it will display better and be easier to read)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/humanify#77
No description provided.