-
Notifications
You must be signed in to change notification settings - Fork 4
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
Icons are blank in an electron app on Windows #10
Comments
In trying to debug this further I inspected On Mac the file contains a bit like this: define("ember-heroicons/utils/heroicons",["exports"],function(_exports){"use strict";Object.defineProperty(_exports,"__esModule",{value:true});_exports.ICONS=_exports.DEFAULT_TYPE=void 0;0;//eaimeta@70e063a35619d71feaimeta@70e063a35619d71f
const DEFAULT_TYPE=_exports.DEFAULT_TYPE='outline';const ICONS=_exports.ICONS=[{"name":"x-mark",...}];}); The On Windows that bit of the file contains a completely empty define("ember-heroicons/utils/heroicons",["exports"],function(_exports){"use strict";Object.defineProperty(_exports,"__esModule",{value:true});_exports.ICONS=_exports.DEFAULT_TYPE=void 0;0;//eaimeta@70e063a35619d71feaimeta@70e063a35619d71f
const DEFAULT_TYPE=_exports.DEFAULT_TYPE='outline';const ICONS=_exports.ICONS=[];}); |
And it just occurred to me to see if I'm guessing that this line might not be finding all the files that it expects to find even though they're there: Line 55 in 4e17478
|
I have an
ember-electron
app that's usingember-heroicons
. In most environments everything works exactly as expected. But on Windows when running the electron app the icons seem to be missing. There are wrapper<svg></svg>
tags that show up where the icon should be, but there are no<path>
elements inside of it. If I access the web version of the app from windows the icons work as expected. And the icons work inside the electron app on other, non-Windows platforms.This sounds very similar to #5, but I suspect that it's a different thing. I've tried adding
heroicons
directly topackage.json
and that doesn't seem to make a difference. (heroicons
was already in myyarn.lock
as a dependency ofember-heroicons
.)I've verified (on Windows) that
node_modules/heroicons
contains the same things that it does on other platforms.I'm not sure how to debug this any further. Any suggestions for fixes or additional debugging steps would be greatly appreciated.
The text was updated successfully, but these errors were encountered: