-
SPA get 404 error when refreshing the page or access directly and SEO?
When developing and deploying SPA app, eg: Reactjs, the navigation between pages works perfectly by clicking through several routes and everything seemed fine. Somehow the URL looks like: http://abc.com/job/431 …until we refreshed the page or tried to access a route directly. We got a 404 error. One of working around solution: Use HashRouter instead of…
-
Resolved React refresh webpack plugin throws $RefreshSig$ is not defined
While using Babel transform and the webpack hot reload middleware approach, and after build the project in PROD mode, an uncaught ReferenceError: $RefreshSig$ is not defined error thrown in console. Per react-refresh-webpack-plugin docs : Ensure both the Babel transform (react-refresh/babel) and this plugin are enabled only in development mode! and the packages: "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4", "react-refresh":…