react-json-logic icon indicating copy to clipboard operation
react-json-logic copied to clipboard

Uncaught TypeError: Cannot read property 'string' of undefined

Open vishnukalakota opened this issue 7 years ago • 2 comments

could you please fix this error. this is due to PropTypes is moved from core react to prop-types

vishnukalakota avatar Oct 02 '18 05:10 vishnukalakota

@vishnukalakota I'll take a look at it but unfortunately not soon. in the meantime, you can add this piece of code to the index.jsx or app.jsx of your project:

import React from 'react'
import PropTypes from 'prop-types'

React.PropTypes = PropTypes

altaywtf avatar Oct 02 '18 10:10 altaywtf

Hi, could you please explain me how the array operations(some, every, filter and map) are evaluated. i want to apply this logic {"map":[ {"var":"integers"}, {"*":[{"var":""},2]} ]} on this data {"integers":[1,2,3,4,5]}

=> will not be evaluated by JSON logic throwing an error Thanks

vishnukalakota avatar Oct 05 '18 02:10 vishnukalakota