clauderic / clauderic/react-sortable-hoc

Fail to execute window.getComputedStyle(document.documentElement, '') || ['-moz-hidden-iframe']

Open
#674 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

My tests are failing on `var styles = window.getComputedStyle(document.documentElement, '') || ['-moz-hidden-iframe'];` with the error: `TypeError: window.getComputedStyle is not a function` on
`node_modules/react-sortable-hoc/dist/react-sortable-hoc.js:115:23`

I have the latest version of react-sortable-hoc (1.11.0) installed.

I am running the project in
OS: macOS
Node: v8.11.4
npm: 5.6.0

Even later versions of node I get the same error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at node_modules/react-sortable-hoc/dist/react-sortable-hoc.js:115 and reproduce the failing test environment described in the issue. Investigate why window.getComputedStyle is unavailable there and determine the project change needed to prevent the TypeError. Done means the tests execute without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.