Skip to content

Vue3 Bridge not working with Vite #4101

@sowjanyacv

Description

@sowjanyacv

Describe the bug

We have implemented a simple micro-frontend to use Vue3 bridge with both Vite and Rsbuild.
The App build with Rsbuild is working as expected. In the app build with vite, if we try navigating to a route within a remote, it is throwing errors.

Image

We have come to the conclusion that Vue3 bridge works with Rs build and not Vite.

This is the Rsbuild repo:
https://github.com/sowjanyacv/micro-frontend-with-vue3-bridge-rsbuild

Reproduction

https://github.com/sowjanyacv/micro-frontend-with-vue3-bridge-vite

Used Package Manager

npm

System Info

System:
    OS: macOS 15.7
    CPU: (14) arm64 Apple M4 Max
    Memory: 1.40 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.17.1 - /opt/homebrew/opt/node@22/bin/node
    npm: 10.9.2 - /opt/homebrew/opt/node@22/bin/npm
    pnpm: 10.14.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 140.0.7339.208
    Safari: 18.6

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions