Skip to content

JS and CSS files not loading in the react build  #11258

@Karanpathania2205

Description

@Karanpathania2205

I built a react app , it works fine when i run it usinfg the command 'serve -s build' but as soon as i start my index.html using a live server , nothing loads . I am only able to see my favicon.ico and my background color ,apart from that nothing is visible as no js and css files are getting loaded . I even tried giving the homepage:"." and homepage:"./ " in my package.json , but still nothing happened . The CSS and JS file path in my index.html are correct as I am getting redirected to them if i CNtrl+click on the link using vscode . I am unable to understand the issue . It would be a great help if somebody could guide me forward .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions