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

Images not loading in react JS #1303

Open
ak3311g opened this issue Jun 29, 2024 · 7 comments
Open

Images not loading in react JS #1303

ak3311g opened this issue Jun 29, 2024 · 7 comments

Comments

@ak3311g
Copy link

ak3311g commented Jun 29, 2024

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

@dewang002
Copy link

can you provide SS for more clarity

@ggorlen
Copy link

ggorlen commented Jun 30, 2024

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?

@ak3311g
Copy link
Author

ak3311g commented Jun 30, 2024

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
Copy link
Author

ak3311g commented Jun 30, 2024

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
Copy link
Author

ak3311g commented Jul 3, 2024

for some time it started working but again same issue

@dewang002
Copy link

dewang002 commented Jul 3, 2024 via email

@ak3311g
Copy link
Author

ak3311g commented Jul 6, 2024

@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.

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

3 participants