-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failed to load the sidebar image and react logo image in the production build #52
Comments
Hello there, @bogere , If you just delete the homepage prop from the package.json file, do you still have this issue? Best, |
yes, I had the same error for loading the font icons but i had to make changes to the css files for the font icons to load like this
|
@einazare Have you had success with loading the sidebar image after making some modifications |
How? Could i take look at your Sidebar.jsx file this part. (Components/Sidebar/Sidebar.jsx)
|
Hello there @bogere ,
I don't understand your question. Can you please elaborate? Best, |
Does your sidebar.jsx file have the same code as one shown above before u ran |
Hello again, @bogere , Here is our Sidebar.jsx code: https://github.com/creativetimofficial/light-bootstrap-dashboard-react/blob/master/src/components/Sidebar/Sidebar.jsx Best, |
Thank you.. It is the same as sidebar.jsx that is on my machine... maybe i shall build on another computer and see how it behaves. |
Hello again, @bogere , What if you go inside Best, |
That solution was solving the failure to build the project(npm run build) but in my case , it is the sidebar image and react logo that are not loading in production mode, The funny thing is that when imported the profile image in web app, it worked perfectly even in production mode |
!!! IF YOU DO NOT USE THIS ISSUES TEAMPLATE, YOUR ISSUE IS LIABLE TO BEING IGNORED BY US
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
I expect the sidebar image and react logo image at the top load normally in the production build.
Current Behavior
The sidebar image and react logo image cannot load in the production build, I can see the image not found in the browser console
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
who has managed to load the sidebar3.jpg image or react logo image at the top in the production build.
Everything works perfectly in the development mode but I had to make a couple of changes
to the index.html file and
static\css\main.33ec52e9.css
to ensure that pixel den iconsload properly and also javascript files in the production mode(build mode)
look at my current production index.html.
css file
//so how did u load the sidebar image becuase i have tried all tricks but all in vain..
yet the sidebar3.jpg is imported in the sidebar.jsx file so it must be automatically put in the
build folder after build process.
Failure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: