Windows localhost issue: Vue and Node app only displays home page, unlike MacOS and production

I’m having a weird problem with my Vue and Node app on Windows 10 localhost. It’s been working fine in production for a year and runs great on MacOS localhost. But on Windows, only the home page shows up. All other routes are blank pages.

I fixed some initial setup problems like missing Python and windows-build-tools using Chocolatey. Could this be related? Also, the Node version on Windows is newer than what’s in the project. Might that cause issues?

Here’s my main package.json script:

{
  "scripts": {
    "local": "concurrently \"npm:local:*\"",
    "local:backend": "nodemon --exclude './frontend' server.js",
    "local:frontend": "cd frontend && npm run dev",
    "setup": "npm i --only=dev --prefix frontend && npm i --prefix frontend && npm run compile --prefix frontend",
    "launch": "node server.js",
    "pre-deploy": "python cleanup.py"
  }
}

Any ideas what could be wrong? I’m open to trying any suggestions you might have.

Have you considered potential path-related issues on Windows? Windows uses backslashes for file paths, while Unix-based systems use forward slashes. This can sometimes cause problems with imports or file references. You might want to check your code for any hardcoded paths and ensure they’re using path.join() or similar methods to handle cross-platform compatibility. Additionally, verify that all your dependencies are correctly installed and compatible with your Windows environment. It might be worth running ‘npm audit’ to check for any conflicts or vulnerabilities.

hey there! sounds frustrating. have u checked ur console for any errors? might give u some clues. also, double-check ur node_modules - sometimes windows can mess those up. maybe try deleting node_modules and running npm install again? just a thought!

hmm, that’s a tricky one! Have u tried clearing your browser cache or using a different browser on Windows? sometimes caching can cause weird issues. also, maybe check if there’s any windows-specific config in ur vue router setup? just brainstorming here… wat do u think?