Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Uncaught TypeError: Cannot read property 'string' of undefined #2

Open
vishnukalakota opened this issue Oct 2, 2018 · 2 comments
Open

Comments

@vishnukalakota
Copy link

vishnukalakota commented Oct 2, 2018

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

@altaywtf
Copy link
Owner

altaywtf commented Oct 2, 2018

@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

@vishnukalakota
Copy link
Author

vishnukalakota commented Oct 5, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants