CacheControl / CacheControl/json-rules-engine

updateRule not working

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

描述

engine.updateRule(rule)
^

TypeError: engine.updateRule is not a function
at Rule. (/home/ashwin/sandbox/json-rules-engine/examples/sandbox.js:86:16)
at Rule.EventEmitter.emitAsync (/home/ashwin/sandbox/json-rules-engine/examples/node_modules/eventemitter2/lib/eventemitter2.js:1133:31)
at processResult (/home/ashwin/sandbox/json-rules-engine/examples/node_modules/json-rules-engine/dist/rule.js:339:23)
at /home/ashwin/sandbox/json-rules-engine/examples/node_modules/json-rules-engine/dist/rule.js:350:18
at async Promise.all (index 0)

貢獻指南

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

研究方向

首先在 examples/sandbox.js:86 重現故障,並檢查 updateRule 呼叫涉及的引擎 API。透過 examples/node_modules/json-rules-engine/dist/rule.js 追蹤相關的執行路徑,並確認該範例是否使用了受支援的方法;完成的標準是該範例不再引發 TypeError,或 issue 明確記錄該呼叫不受支援。

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

評估

技術堆疊
javascript
領域
backend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

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

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