-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
[Bug] Uncaught TypeError: window[this.entrypoint] is not a function #14
Comments
What website are you trying to run moduleRaid on? If |
On chat2.kaki87.net, which is my own fosscord instance.
I saw that, which isn't necessary in this case. Thanks ! |
Hmm, if I run the script on the page via the console it works fine. I don't know how you are implementing moduleRaid but maybe you are too early then (moduleRaid tries to call the entrypoint as a function as the last resort, which was some legacy Webpack bundling way) |
Using the following code : {
const script = document.createElement('script');
script.setAttribute('src', 'https://unpkg.com/moduleraid/dist/moduleraid.iife.js');
script.addEventListener('load', () => window.mR = new ModuleRaid());
document.head.appendChild(script);
}
Would waiting for
What does it uses first then ? Thanks |
Yeah, I saw the errors prop up a bit more often in other projects too. I'll see about fixing that injection method, so it doesn't throw errors anymore at least. |
Hi! |
Okay, so an update on this: First, I have made new releases since: 6.0.1 fixed an issue with function method injections, these should work again (important for Webpack v3 and earlier). 6.1.0 introduces a new feature: Entrypoint detection 🎉 In case of WhatsApp Web, the entrypoint isn't called You can now also specify a I also fixed the final brute-force injection method so that it doesn't say This hopefully should solve most of the issues from this thread! |
Hello,
I am getting the following error when calling
new ModuleRaid()
:Thanks
The text was updated successfully, but these errors were encountered: