New Resource throws "is an empty directory" exception in Forge deploy

Hi everybody,

I´m adding a new resource to my manifest.yml, when deploying the Forge App I´m getting following error:

Error: Resource admin_approval_page at: C:\Users\my-user\Development\my-app\src\frontend\admin_page\approval.jsx is an empty directory

There is no directory in file system with this name, also files exists and using an existing one from a resource which works brings the same error.

My manifest.yml looks like that, when removing the new entry deployment works without any errors.

resources:
  - key: admin_config_page
    path: src/frontend/admin_page/global_config.jsx
  - key: admin_approval_page
    path: src/frontend/admin_page/approval.jsx
  - key: issue_panel
    path: src/frontend/issue/panel.jsx
  - key: issue_activity
    path: src/frontend/issue/activity.jsx

All components are up-to-date, downgrading to previous LTS shows the same error.

New resource should be used as page in App Admin.

Same thing started happening to me.

It doesn’t happen to existing resources, but for any resource I add, it throws that error about forge believing the path is a directory. It happens in multiple forge projects I worked in.