Closed diachedelic closed 4 years ago
I was having the following issue: TypeError: Object(...) is not a function
and I made the changes on this PR locally and it solved the issue.
Seems like import { disableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock'
is returning undefinded
in my project.
Is there any plan to merge this any time soon?
CC: @willmcpo
@bmbrina thanks for testing! @willmcpo I will merge this, please publish at your convenience.
@diachedelic can you push to npm please?
thanks again @diachedelic - released to npm.
I've read somewhere that providing a
.mjs
file (as we do in the"module"
field) can cause issues with build systems which don't expect it. This swaps it for a.esm.js
extension instead.