Closed tekbreak closed 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!
Closing as fixed in v2.4.1
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