-
Notifications
You must be signed in to change notification settings - Fork 840
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
macos-notification-state module imported but unavailable on non-macOS #2334
Comments
Hello @selfisekai, which node version are you using? |
|
@selfisekai We don't generally support Alpine Linux just in general, so there could be an issue building. Did you make sure to install all the required dependencies as per this document: https://developers.mattermost.com/contribute/more-info/desktop/developer-setup/ It looks to me like the version that was built is missing those packages, and those files are required for the app to run, despite not being necessary for the specific OS you're using. |
ok, I found the root cause.
I'm gonna make a PR to the module |
Huh, that's weird because we've added our own patch to that module to make sure it builds correctly: Is your build for some reason not running |
yes, I routinely add |
Ahh that makes sense. I was planning on sending an update to the module at some point, but since we wanted to release sooner rather than later we opted to fix it ourselves. |
I confirm (by marking "x" in the [ ] below: [x]):
Summary
App imports macOS-specific native node module, which does not get built on Linux by module author's design
Environment
Steps to reproduce
try opening a mattermost-desktop build in electron
Expected behavior
app opens successfully
Observed behavior
app fails to open, the electron process keeps running anyway. in terminal:
Possible fixes
do not import macos-notification-state if not on macOS
The text was updated successfully, but these errors were encountered: