Placeholder 'jss-main' was not found in the current rendering data

If possible you can run command to deploy the placeholder definition. That has highly chance to resolve the issue.

jss deploy items

If not, you can manually create the placeholder you need and add it to your Layout:

1. Create the placeholder under your project placeholder settings folder

2. Update your Layout to include the placeholder you just created(i.e. /sitecore/layout/Layouts/Foundation/JSS Experience Accelerator/Presentation/JSS Layout)

3. Publish the change

Reference: https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/layout-service.html#layout-service-data