I am using React Native and encountered the following error on my android emulator
enter image description here
enter image description here
I tried several times and the same thing comes out on my cell phone scanning the QR
I also noticed that the folders are empty.
enter image description here
The import module Path is incorrect please check.
'. /App/Redux/action' please check this path
I am making a react portfolio website and running it on local server 3000 with npm.
For this image it is showing this strange behaviour.
Other images are being shown without a problem.enter image description here The code is also good as other images are fine:
enter image description here
The file structure and file names are as follows:
enter image description here
The image path you have entered seems to be wrong here.
Try changing the image path as mentioned here =>
I built a website on NextJS and deployed it on vercel. On the local environment at localhost:3000, it shows the background image but on vercel it does NOT show the background image.
Below are screenshots
On Vercel :
On Local :
I am setting the background image with the tailwindCSS where I defined the images in tailwind.config.js file and using them in different components. But that is not the issue as it is working fine in local envirenment.
I don't know what is the reason that why it is behaving differently.
Project GitHub Link : https://github.com/mohitm15/Weather-Lytics
Instead of using relative imports to the public folder within your tailwind config, you should leverage next's static file serving to load images from it.
For example, if you look in the DOM, the URL pathing generated during the build process is trying to utilize mini-css-extract-plugin to create a path, but the path is not valid:
When using static file serving, your tailwind config would change from:
'day_sun' : "url('../public/back_big.jpg')",
to:
'day_sun' : "url('/back_big.jpg')",
When compiled, the path may look incomplete, but it's actually directing that request to /public/[image].[ext]:
Working demo (the weather searching feature will not work since NEXT_PUBLIC_API_KEY_1 is undefined): https://weather-lytics-refactor.vercel.app/
Even though I load my images from static file serving, similar bug still happened to my app.
The bug is at my /public/img folder. According to the document, seem like the /img folder have similar name with some next file or folder, which can cause bug.
To fix it make sure you don't have any folder name "img" or something like that . . . (name "pic" work for me)
This is my App.js
enter image description here
This is my App.test.js
enter image description here
This is my package.json
enter image description here
Thi is my error
enter image description here
And I can't find a solution for this.
I don't have .jsx files but it gives me this error
how can i solve this error?
[enter image description here]2
I have seen your screenshot , maybe you need to use scrollTrigger , NOT ScrollTrigger