Closed badrul1 closed 11 months ago
Ok I fixed it. It's a case of Linux/Apple devs not bothering to check if their tutorial works on Windows.
In your package.json file change:
"fastapi-dev": "pip3 install -r requirements.txt && python3 -m uvicorn api.index:app --reload",
to
"fastapi-dev": "pip3 install -r requirements.txt && python -m uvicorn api.index:app --reload",
this should ensure uvicorn runs.
I've just followed the steps here: https://vercel.com/templates/next.js/nextjs-fastapi-starter
and am getting this error when I run npm run dev:
I am using Windows, and Node.js v18.15