-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
The spritesheet url sometimes comes with wrong data #39
Comments
hi @lichomonjelat do you have a reproduction repo? i know you said in your QA environment it happens, but does it also happen locally when you do |
Hi @mcansh! yes, it happens too if i run the prod build locally |
@lichomonjelat this is what I have for the moment inside
this will not append the hash if its a svg. |
definitely something happening in the writeBundle method were im going through the emitted files and updating the sprite url, havent had a chance to look into it unfortunately. also need to tweak something for the warning about emitFile and serve mode, but that should be unrelated to this issue |
Hi there @mcansh! I'been implementing your plugin on my remix js app, locally it works fine, each icon renders it's all good, but when the time for testing in the qa environment arrived, we found out several problems, the icons aren't loading correctly, some of them do, but others don't, i have a few hydration errors on my console (maybe it's a problem on my end) and i keep getting a 404 on the spritesheet, sometimes the request is ok (200) but most of the time it does not work. It tries to get the default spritesheet without the hash and it keeps getting 404, maybe that's a reason why the icons are not rendering correctly. And other thing that i've found out is when you make a navigation, this error happens too, it tries to get the default spritesheet name instead of the hashed one.
The text was updated successfully, but these errors were encountered: