scrollmonitor icon indicating copy to clipboard operation
scrollmonitor copied to clipboard

Getting some warning and that inturn breaking the functionality (v1.2.8)

Open johns-abraham-borngroup opened this issue 3 years ago • 2 comments

Hi All,

Getting some warnings with latest version (1.2.8) like below (not pasted the entire error)

Is this related to any configurational problems? How to solve this?

WARNING in ./node_modules/scrollmonitor/dist/index.js 24:20-27 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted @ ... WARNING in ./node_modules/scrollmonitor/dist/src/constants.js 5:20-27 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted @ ...

WARNING in ./node_modules/scrollmonitor/dist/src/watcher.js 5:20-27
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ...

WARNING in ./node_modules/scrollmonitor/dist/src/container.js 5:20-27
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ....

WARNING in ./node_modules/scrollmonitor/dist/src/types.js 5:20-27
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./node_modules/scrollmonitor/dist/index.js

Thanks, Johns

johns-abraham-borngroup avatar Dec 01 '21 19:12 johns-abraham-borngroup

Hi there,

does anyone have an idea how to fix this? I also tried it with a slightly older version (1.2.6) but with the same error.

Is it maybe a problem using this lib not the "old school" way via loading the js-lib directly by a script tag but using the modern (ES6) way by using import?

Just asking...

Kind regards, Dennis

Baloobear avatar Jan 21 '22 04:01 Baloobear

Same problem for me using [email protected]

Unfortunately I had to install an older version -1.2.4 - which works perfectly fine. More recent versions before 1.2.8 might work as well, not sure. I'm using the aforementioned release just because I used it in another project and I was sure it worked.

baglio avatar Jan 27 '22 16:01 baglio

Do you have a repo that reproduces this? I haven't seen it.

stutrek avatar Nov 17 '22 20:11 stutrek

If anyone has a repository that can reproduce this bug, please let me know.

stutrek avatar Mar 22 '23 03:03 stutrek