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

Image URLs in require don't work #3845

Closed
garethx opened this issue Apr 6, 2020 · 2 comments
Closed

Image URLs in require don't work #3845

garethx opened this issue Apr 6, 2020 · 2 comments

Comments

@garethx
Copy link
Contributor

garethx commented Apr 6, 2020

🐛 bug report

Description of the problem

If you require an image, loading it from a dependency doesn't seem to work well... We should in that case open a URL from a CDN.

e.g.
require('leaflet/dist/images/marker-icon-2x.png')

results in: <img src="�PNG IHDR���)���)������i�}���1IDATx��҅��@��� 3����33� s�Ҕ������p�T۝~��N���ܐ7d��������~��_�������&quot;cP\� � �W��Aq�4�^ �W�$Aq���C�Q�_�R��Cfd7&amp;�d՚��H͞_�i�8�H�n���I���0bG�i(#T!���F1� 2��o��D$G��)���ɸ��*��� /���etԀZ�P��Hu�����r��e���Q� �-����ʘ&quot;��~���aK,��Y��vG%���� ��Q������t��� +˜Sd+^�Q��/0&amp;�������MM�<�8��� ���k̸����$���M� ��c�.� u$G����:I�q�}��i�D\ȷ�Dt�~�@���jKe��W�zRB��p�8�|�\Ŕ��$�zR���%)�C9����fR(�E��W@���],WK!������~�R�t��r��H�A˄���P�À�a{�Ad�$ٱ�+�( R��g��Z��dG�&quot; �\��4��b�'|�|&amp;y$�):0&quot;��q!�P�;>��彁_ِ3����L5N�����=�S� ������@`D� �h����c�Ƨ���ġa�M^���q�����#��R��t��_�3�8�@b����IEND�B`�" class="leaflet-marker-shadow leaflet-zoom-animated" alt="" style="margin-left: -12px; margin-top: -41px; width: 41px; height: 41px; transform: translate3d(640px, 749px, 0px);">

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox Latest
Browser Chrome
Operating System Mac OS X
@colbyfayock
Copy link

thanks for this report 😃 any idea on if this would be something that would be expected to get fixed sooner or later? just wondering if I need to pivot in the short term

@github-actions
Copy link

github-actions bot commented Sep 4, 2020

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

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