How to deploy both backend and frontend

My react app has both a frontend end a backend folder.
I’ve deployed my backend as Web Service without error right now, but when trying to deploy my frontend as Static Site I’m getting this error:

Module not found: Error: Can’t resolve ‘axios’ in ‘/opt/render/project/src/client/src/pages’

how can i fix it? Should I install axios in the frontend also?

Hi,

If you have a monorepo that you’re deploying as separate services, both folders/package.json will need all the packages required by the frontend or backend in isolation.

It’s tough to give any more suggestions without knowing your setup. If you don’t want to share details on the community forum, please feel free to raise a ticket from the “Help” or “Contact Support” links while logged into the Dashboard.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.