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

Doesn't work correctly in Electron #47

Open
simonhamp opened this issue Sep 9, 2024 · 1 comment
Open

Doesn't work correctly in Electron #47

simonhamp opened this issue Sep 9, 2024 · 1 comment

Comments

@simonhamp
Copy link

Some NativePHP users are experiencing this issue via Filament, an open source component library and admin panel solution for Laravel.

It seems that under Electron, this check returns true when it's not expected to:

var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;

Is there something you could do to fix this? Or is there maybe a build option on the Filament side that might help?

@emn178
Copy link
Owner

emn178 commented Sep 10, 2024

Try to set global.JS_MD5_NO_NODE_JS = true before require js-md5. global may have a different name in your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants