I am trying to achieve server side rendering for an app using react-redux and express for the server, webpack is being used to create the bundle.
I started off using the following documentation:
https://redux.js.org/docs/recipes/ServerRendering.html
I have the following set up to load up the main.js created from webpack:
<script type="application/javascript" src="/static/main.js"></script>
On firing up the express server though, this is what I see in the console:
Refused to execute script from 'http://localhost:8080/static/main.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
This is not firing up in any browser. Any idea what might be going on?