ethanselzer / react-cursor-position

A React component that decorates its children with mouse and touch coordinates relative to itself.
https://ethanselzer.github.io/react-cursor-position
MIT License
143 stars 35 forks source link

Constants import path #21

Closed tekbreak closed 6 years ago

tekbreak commented 6 years ago

I think you miss "./" in the path to constants.js file In the file ReactCursorPosition.js, line 6 import * as constants from 'constants';

The correct path is: import * as constants from './constants';

I know you way is also accepted, but it can affect aliases created by webpack

ethanselzer commented 6 years ago

@tekbreak - Thanks for reporting this issue! I really appreciate it. I think it is corrected in release v2.4.1. Please have a look! If you find react-cursor-position useful, please consider starring it on GitHub. Starring helps to grow the project and that benefits everyone who uses it. Thanks again!

ethanselzer commented 6 years ago

Closing as fixed in v2.4.1