React-beautiful-dnd: Bug under tests: installation ReferenceError: Element is not defined

Created on 24 Mar 2020  路  2Comments  路  Source: atlassian/react-beautiful-dnd

Got this error in Travis CI while installing dependencies and testing my front app.

Do you know how to fix it ?

Thanks a lot for your help !

Version: "react-beautiful-dnd": "^13.0.0"

image

unconfirmed-bug untriaged

Most helpful comment

I fixed the issue adding global.Element = function(){}; at the begginning of my index.test.js file.

I think you should test in your code if Element is undefined to avoid this error.

I keep this issue open.

All 2 comments

I fixed the issue adding global.Element = function(){}; at the begginning of my index.test.js file.

I think you should test in your code if Element is undefined to avoid this error.

I keep this issue open.

Was this page helpful?
0 / 5 - 0 ratings