dry-rb / dry-logic

Predicate logic with rule composition
https://dry-rb.org/gems/dry-logic/
MIT License
179 stars 66 forks source link

Error: undefined method `build' for Dry::Logic::Rule::Predicate:Class #103

Closed Vasu1105 closed 1 year ago

Vasu1105 commented 1 year ago

Describe the bug

This error Error: undefined method 'build' for Dry::Logic::Rule::Predicate:Class is coming when the build method is called here https://github.com/dry-rb/dry-types/blob/main/lib/dry/types/constraints.rb#L16. Any idea what is wrong here?

To Reproduce

Provide detailed steps to reproduce, an executable script would be best.

Expected behavior

A clear and concise description of what you expected to happen.

My environment

flash-gordon commented 1 year ago

Please upgrade to the latest versions of dry-logic and dry-types, there were changes to how gems are loaded. It's not always possible to coordinate version compatibility between gems.