We are seeing a prop-type error with Evergreen Pane, which uses ui-box for innerRef. Following this answer from stack overflow, it looks like we need to specify instanceOf(Element).
Edit
As pointed out by @Rowno this won't work for SSR - further down in the same stack overflow answer it recommends checking for the existence of Element - which should solve for SSR and ava testing.
We are seeing a prop-type error with Evergreen Pane, which uses
ui-box
for innerRef.Following this answer from stack overflow, it looks like we need to specify
instanceOf(Element)
.Edit
As pointed out by @Rowno this won't work for SSR - further down in the same stack overflow answer it recommends checking for the existence of
Element
- which should solve for SSR and ava testing.~The follow on effect of this is
Element
isn't defined forava
tests - then, following this recommendation, I've added the window package to patchElement
.~Alternatives
any
for the ref prop-type:PropTypes.shape({ current: PropTypes.any })