You must start json-server first for login post request.
npm install
json-server ./src/mock-data.json --middlewares ./src/middleware.js
...then start Rollup:
npm run dev
Example Login