Closed kenny1har closed 7 years ago
"in the dev mode, client.js is located at /static/client.js" => not correct. In DEV mode, it's loading /client.js from webpack server, for example: http://localhost:8199/client.js
in PROD mode, it's loading /client.js normally. I've just tried it works for me in both modes. Is it broken for you?
i did a clean clone from github. npm run dev
*windows 10 and ubuntu ... same problem
Your path looks correct. I'm using a Mac. It works on multiple projects of mine. It could be something wrong with Webpack. If you find a solution, please let me know.
before:
after:
npm run dev is loading a 404 error client.js
different path for client.js
in the dev mode, client.js is located at /static/client.js in the production mode, the path become incorrect. /client.js
renderAppRouter.js
production
dev