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

【example demo bug】Did not work as expected when using the sample demo #578

Open
zhaoky opened this issue Feb 29, 2024 · 3 comments
Open

Comments

@zhaoky
Copy link

zhaoky commented Feb 29, 2024

Steps to reproduce

  1. Pull the code from the main branch and install the dependency.
  2. Run the vue3-demo-esm example.
  3. The project started successfully, but some components did not load as expected.
image

Components in the red box are not rendered

What is Expected?

All components render normally.

What is actually happening?

Some components are not rendered.

image

Whether the remote component's module is asynchronously fetched, causing the ‘default‘ to be undefined?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It's because of shards. Button and Content use pinia. Requesting pinai is a promise, and the first accessed component defalut will be undefind.

@xplloveyxl
Copy link

It's because of shards. Button and Content use pinia. Requesting pinai is a promise, and the first accessed component defalut will be undefind.

@xplloveyxl
Copy link

const dynamicComponents = ['Button','Images','Content'];

If the Content is placed after the Button, the Button will be undefined.
Although I have found the problem, I still don't know how to configure it. I am still researching. Have you taken care of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants