I had gone through many solution that i find in stackoverflow itself none off them work for me. As I am a newbiee to react and a angular developer I just understood I need to change route directory.
I just changed my base url.
<BrowserRouter basename={"/newdailytv"}>
<Route path="/">
<Home />
</Route>
</BrowserRouter>
And add
"homepage": "http://localhost:8080/newdailytv",
to my package.json file. 8080 is apache tomcat 9 default port. But this gives me errors like
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
Access to internal resource at 'localhost:8080/newdailytv/manifest.json' from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
Access to manifest at 'localhost:8080/newdailytv/manifest.json' from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
can anyone help me to sort out this issue thank you.