Error in window.createLemonSqueezy()
Closed this issue · 8 comments
I got weird problems in incognito mode with this were lemonsqueezy doesn't load
Are you inserting <script src="https://app.lemonsqueezy.com/js/lemon.js" defer />
in index.js (or layout.js for Next)?
Temporarily I fixed it like this:
useEffect(() => {
setTimeout(() => {
// @ts-ignore
window.createLemonSqueezy();
}, 500);
}, []);
Are you using a framework or vanilla html and js?
The reason why you haven't received an official response from lemon squeezy is probably because there's not enough information in your issue. If you copy and paste all your code, someone will be able to point you in the right direction.
The maintainers also often ask for the ability to reproduce your error, so either creating an repo with all your code (or the relevant parts) or copy and pasting your code is required.
Also, if you feel like you fixed the issue, be sure to close the issue below, so it's not persisting as an open issue.