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

fix: esm import bug #777

Open
wants to merge 1 commit into
base: vue3-webpack
Choose a base branch
from

Conversation

SoonIter
Copy link

Fix the esm bundle bug of vue in "[email protected]"

Failed to resolve component: grid-item at <App>
Failed to resolve component: grid-layout at <App>
import { GridItem, GridLayout } from "vue-grid-layout"; // undefined undefined
import { App } from 'vue';

import GridItem from './GridItem.vue';
import GridLayout from './GridLayout.vue';

export { GridLayout, GridItem };  // not work
 
const install = (app: App) => {
    app.component('grid-layout', GridLayout)
    app.component('grid-item', GridItem)
}
+install.GridItem = GridItem;
+install.GridLayout = GridLayout;

export default install;

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

Successfully merging this pull request may close these issues.

1 participant