React router not working in production with vite

a month agoa minute read

This was caused by a issue with rollup, to fix this follow the steps. Add the following code into your package.json

{
    # other properties
    "overrides": {
        "rollup": "4.15.0"
    }
}

Then run npm install and npm run build then deploy

ShahriyarAlam

Copythight © All Rights Reserved.