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
Uncaught TypeError in Shader.js (Electron app) #2937
Comments
I'm using pixi by importing it like any other script in html, using Electron, no issues However, Electron does require some require/import related modifications to code (if you import them to the DOM, you have to manually convert Nothing tangible to help you, but just my .02 |
Its problem with glsify, then. Like in that webpack issue somewhere here... |
webpack issue is #2922 |
The workaround for this in webpack is to use the prebuilt version. If it works the same in electron, either |
Closing as it seems answered, people mentioned webpack workaround and you cannot simply include pixi's entry file using electron's require. You will need to include the built file in electron. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am using Electron (and by extension, npm and require), and am just trying to do basic tutorial code. There's a choke on making a new WebGLRenderer.
Error for both of the above lines:
Uncaught TypeError: src.substring is not a function Shader.js:12
The text was updated successfully, but these errors were encountered: