matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Images not loading in react JS

Open ak3311g opened this issue 1 year ago • 7 comments

When i am importing image for texture in it's showing image not found even after giving right path

ak3311g avatar Jun 29 '24 14:06 ak3311g

can you provide SS for more clarity

dewang002 avatar Jun 29 '24 19:06 dewang002

A runnable minimal example of the code that reproduces the issue would be ideal. Are you serving the images somewhere, or just pointing to a local file?

ggorlen avatar Jun 30 '24 02:06 ggorlen

I am pointing it to local I tried to place it in same directory as the component file and also tried with public folder but in both condition its not working

and one more thing I am facing i don't know why but the mouse and mouseconstraints also not working on my react app

ak3311g avatar Jun 30 '24 08:06 ak3311g

image

this is the issue I am currently facing after creating a new project because I have deleted my previous project out of frustration :)

ak3311g avatar Jun 30 '24 09:06 ak3311g

for some time it started working but again same issue

ak3311g avatar Jul 03 '24 15:07 ak3311g

Do you contribute on daily basis? I am thinking to participate in hackathon would you like to join

On Wed, Jul 3, 2024, 9:13 PM Ankit Kumar @.***> wrote:

for some time it started working but again same issue

— Reply to this email directly, view it on GitHub https://github.com/liabru/matter-js/issues/1303#issuecomment-2206616387, or unsubscribe https://github.com/notifications/unsubscribe-auth/A52ZN6CGT5HJUJPG2GIQYZLZKQL3JAVCNFSM6AAAAABKDIJDTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGYYTMMZYG4 . You are receiving this because you commented.Message ID: @.***>

dewang002 avatar Jul 03 '24 15:07 dewang002

@dewang002 yeah I am ready and also this issue is fixed I think or I figured out another way to do this I need to first place items in public folder and run the engine and render just after defining it i am creating boxes and borders first then doing the running thats why I saw this method on internet but when I run the engine and render before adding boxes and border it runs fine.

ak3311g avatar Jul 06 '24 08:07 ak3311g