Skip to content

Element is not available in some environments v3.1.0 #251

@crhuff

Description

@crhuff

We just released with dep of ^3.0.5, which is being used in a react 16 environment using SSR. The newest release we just picked up (3.1.0) is causing catastrophic failure, with the following error message.

Node.js v22.15.1
 at Object. (/opt/js/lib/node_modules/react-resizable/build/Resizable.js:7:1)
 at require (node:internal/modules/helpers:135:16)
 at Module.require (node:internal/modules/cjs/loader:1487:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object. (/opt/js/lib/node_modules/react-resizable/build/propTypes.js:36:49)
ReferenceError: Element is not defined

 ^
offsetParent: _propTypes.default.instanceOf(Element),
/node_modules/react-resizable/build/propTypes.js:36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions