Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue devtools not showing the micro-frontend components inside <RouterView> #1152

Open
arielvol opened this issue Oct 4, 2023 · 11 comments
Open
Labels
contribution wanted A maintainer wants help on an issue or pull request need more info An issue, pull request, or discussion needs more information

Comments

@arielvol
Copy link

arielvol commented Oct 4, 2023

We started using Single-Spa in my company and since then the vue devtools is not working correctly.
All I see is the with a "functional" word near it but I can't get to the component inside it.

I tried to check the vue demo site you have:
https://coexisting-vue-microfrontends.surge.sh/app2

And even there, if you go to the Vue devtools you see the same things:

Screenshot 2023-10-04 at 20 06 00

Is there a way to solve this and see the actual components for the micro-frontends that are loaded ?

@MilanKovacic
Copy link
Collaborator

MilanKovacic commented Oct 5, 2023

Please try this newer example and see if the issue still occurs: https://github.com/vue-microfrontends.
I guess it probably has something to do with dynamic loading.

@MilanKovacic MilanKovacic added the need more info An issue, pull request, or discussion needs more information label Oct 5, 2023
@arielvol
Copy link
Author

arielvol commented Oct 5, 2023

Looks like it still happens. Even If I try to refresh the "apps" in the vue devtools I still don't see the actual componenets in each "app".

Did it work for you ? is there any way to get around this issue ? even if it's only for "development" mode

@MilanKovacic
Copy link
Collaborator

I have not used Vue (dev tools) with single-spa. Can you please post a screenshot of what you see when running the newer example?

@arielvol
Copy link
Author

arielvol commented Oct 5, 2023

This is what I See:

Screenshot 2023-10-05 at 10 59 43

I can't get into the components in the .

Not being able to use the vue devtools is a major issue I would think , so it is surprising that no one has opened an issue on this until now :-)

@MilanKovacic
Copy link
Collaborator

That is the picture from the old example (which doesn't utilize best practices). Please try https://github.com/vue-microfrontends, and try to run it locally, and then post the screenshot.
We will definitely look into the issue if it persists.

@arielvol
Copy link
Author

arielvol commented Oct 8, 2023

Hi, I see the same thing:

Screenshot 2023-10-08 at 23 36 47

Seems that Vue devtools don't know how to deal with the single-spa in-browser import and doens't know how to parse the components.
Am I wrong ?

@arielvol
Copy link
Author

@MilanKovacic any thoughts ?

@MilanKovacic
Copy link
Collaborator

Currently, I do not have time to work on this issue, but I can give pointers.
The example projects is outdated. It uses old version of vue, single-spa, single-spa-vue, etc.
Try to create a simple repository containing a root config and a single microfrontend — using the latest versions, and reproduce the issue there.
Also, try to create a regular vue application and delay the router setup in some way to see what happens.
Check how devtools behave in a regular vue application when using a router.

@MilanKovacic MilanKovacic added the contribution wanted A maintainer wants help on an issue or pull request label Oct 15, 2023
@MilanKovacic
Copy link
Collaborator

@arielvol Did you manage to fix the issue?

@arielvol
Copy link
Author

@MilanKovacic unfortunately... no. The devtools just doesn't work for us.

@arielvol
Copy link
Author

@MilanKovacic are u aware of a fix or something new about this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution wanted A maintainer wants help on an issue or pull request need more info An issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

2 participants