joshwnj / joshwnj/react-visibility-sensor

UMD: Uncaught Error: Cannot find module 'react'

Open
#89 2 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.3k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

Have an issue with the versions >= 3.9.0, most probably because of 'Migrated deprecated React.PropTypes and React.createClass' update.

Example: using the visibility sensor at url https://unpkg.com/react-visibility-sensor@3.10.1/dist/visibility-sensor.js after the react,js script I get:

Uncaught Error: Cannot find module 'react'
at s (visibility-sensor.3.10.1.js:1)
at visibility-sensor.3.10.1.js:1
at Object.3../factory (visibility-sensor.3.10.1.js:779)
at s (visibility-sensor.3.10.1.js:1)
at visibility-sensor.3.10.1.js:1
at Object. (visibility-sensor.3.10.1.js:1737)
at Object.14../lib/is-visible-with-offset (visibility-sensor.3.10.1.js:2057)
at s (visibility-sensor.3.10.1.js:1)
at e (visibility-sensor.3.10.1.js:1)
at visibility-sensor.3.10.1.js:1

Also using the umd versions for:
react-15.6.1
mobx.3.2.2
mobx-react.4.2.2
babel-standalone.6.23.1
babel-polyfill.6.23.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.