Skip to content

fix: esm import bug#777

Open
SoonIter wants to merge 1 commit intojbaysolutions:vue3-webpackfrom
SoonIter:vue3-webpack-esm-bug
Open

fix: esm import bug#777
SoonIter wants to merge 1 commit intojbaysolutions:vue3-webpackfrom
SoonIter:vue3-webpack-esm-bug

Conversation

@SoonIter
Copy link

Fix the esm bundle bug of vue in "vue-grid-layout@3.0.0-beta1"

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