Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on v2.5.8 #50

Closed
sectsect opened this issue Oct 2, 2018 · 3 comments · May be fixed by ladas-larry/homeday-blocks#1
Closed

Problem on v2.5.8 #50

sectsect opened this issue Oct 2, 2018 · 3 comments · May be fixed by ladas-larry/homeday-blocks#1

Comments

@sectsect
Copy link

sectsect commented Oct 2, 2018

In v2.5.8, I got a error on IE11.
Loading with Common JS seems to load the ESM file es/bodyScrollLock.js.

(Related #44 )

Thanks.

@willmcpo
Copy link
Owner

willmcpo commented Oct 2, 2018

Can you share a code snippet of how it's loaded? Thank you

@sectsect
Copy link
Author

sectsect commented Oct 3, 2018

@willmcpo

Please check the following.

const bodyScrollLock = require('body-scroll-lock');
const { disableBodyScroll, enableBodyScroll } = bodyScrollLock;

export default () => {
  ...
};

📝 w/ webpack

📌FYI

If I delete the following line, it works fine.
Or change the path to lib/bodyScrollLock.min.js.
It seems that the "module" property overwrites "main".

"module": "es/bodyScrollLock.js",

@willmcpo
Copy link
Owner

willmcpo commented Oct 3, 2018

Ok I'll look into it tomorrow perhaps. Sorry about that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment