CacheControl / CacheControl/json-rules-engine
Uncaught TypeError: (0 , _hashIt2.default) is not a function
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 507
- PR merge metrics
- No merged PRs in 30d
Description
When calling run getting this error. This is implementing the simple first example provided in the documentation in a react web app
```
fact.js:119 Uncaught TypeError: (0 , _hashIt2.default) is not a function
at Function.hashFromObject (fact.js:119:1)
at Fact.getCacheKey (fact.js:112:1)
at Almanac._setFactValue (almanac.js:149:1)
at Almanac._addConstantFact (almanac.js:136:1)
at new Almanac (almanac.js:63:1)
at Engine.run (engine.js:377:1)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the documented first example and reproduce the error in the React web app. Trace the stack through fact.js, almanac.js, and engine.js, focusing on the hashFromObject call and the reported _hashIt2.default value. Done means the example runs without the uncaught TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100