Uncaught TypeError: Failed to resolve module

below are the app bridge versions
@shopify/app-bridge”: “3.1.0”,

"@shopify/app-bridge-react": "^3.1.0",

@shopify/app-bridge-utils”: “^3.1.0”,

i am using it along with vite js

On local host it works perfectly but as soon i deploy it on heroku then i just got a blank page along with web console error
Uncaught TypeError: Failed to resolve module specifier “@shopify/app-bridge/utilities”. Relative references must start with either “/”, “./”, or “../”.