Heroku deploy failure for Strapi because of an unresolved module

Yes but instead of placing it in plugins you need to create a custom folder like packages and reference the package in your core package.json like "your-custom-package": "file:packages/your-custom-package"

I think this can be an acceptable solution, thanks!