javascript-obfuscator / javascript-obfuscator/gulp-javascript-obfuscator

Error: `parentNode` property of given node is `undefined`

未關閉
#15 0 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
103
分支
37
PR 合併指標
30 天內沒有已合併 PR

描述

Just for some hours now, our gulp build process stopped working due to an error in `gulp-javascript-obfuscator`:
```
C:\...\node_modules\gulp-javascript-obfuscator\
node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\node\N
odeUtils.ts:237
throw new ReferenceError('`parentNode`property of given node is `un
defined`');
^
ReferenceError: `parentNode` property of given node is `undefined`
```
(Note that I have "..." the path to the actual folder.)

After quickly digging into the problem, I have found that `javascript-obfuscator` has release v0.17.0 just today (some hours) ago. If I manually downgrade inside the `gulp-javascript-obfuscator` the `javascript-obfuscator` to `0.16.0` (instead of `latest`) it works again. I know this cannot be the actual solution, but it could be a starting point however.

Any suggestions?
Thanks in advance.
Please, if more information is required from my side, tell me.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先使用 javascript-obfuscator 0.17.0 重現 gulp 建置,並與報告中可正常運作的 0.16.0 設定進行比較。檢查與回報的 nodeUtils.ts:237 錯誤相關的相依性行為;當 plugin 使用受影響的相依性版本成功建置,或記錄了相容的版本限制時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
build-system
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。