bug: Can't use vite if you use the @aws/amazon-ecs-plugin-for-backstage
package in your Backstage app
#192
Labels
bug
Something isn't working
π Description
I encountered this bug when I wanted to switch my bundler in my Backstage frontend application from webpack to vite:
Looks like the issue is because the package
@aws/aws-core-plugin-for-backstage-common
has a dependency towards the package@backstage/integration-aws-node
which is a node-library package (which is a backend type of package) but because the@aws/aws-core-plugin-for-backstage-common
is a common package it is used in the frontend package: @aws/amazon-ecs-plugin-for-backstage So ultimately the backend package ends up in the frontend bundle and the bundler fails.π Expected behavior
Cleanup the dependencies to not end up with backend code in the frontend plugins
π Actual Behavior with Screenshots
Right now some backend type of packages are getting bundled into the frontend and vite fails on them
π Reproduction steps
Add the plugin:
@aws/amazon-ecs-plugin-for-backstage
to your project's frontend package and try to start your frontend with theEXPERIMENTAL_VITE=1
flagπ Content
No response
π₯οΈ Your Environment
No response
The text was updated successfully, but these errors were encountered: