-
Notifications
You must be signed in to change notification settings - Fork 133
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
does not provide an export named 'default' #379
Comments
Hey there, @343058360! I'm here to assist you with any bugs, questions, or concerns you have while waiting for a human maintainer. Let's tackle this together! To resolve the import issue with the import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './app.vue';
import { install as ViewUIPlus } from 'view-ui-plus'; // Use named import
const router = createRouter({
esModule: false,
mode: 'history',
history: createWebHistory(),
routes: [
// your routes here
]
});
const app = createApp(App);
app.use(ViewUIPlus); // Use the named import directly
app.use(router);
app.mount('#app');
export default app; This approach ensures that you are correctly importing and using the |
view-ui-plus.ts:2 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/[email protected]/node_modules/view-ui-plus/dist/viewuiplus.min.js?v=ebbd70c1' does not provide an export named 'install' import { install as ViewUIPlus } from "view-ui-plus"; // Use named import import "view-ui-plus/dist/styles/viewuiplus.css"; export default defineNuxtPlugin((nuxtApp) => { |
To resolve the
This setup ensures that |
However there is no use and view-ui-project-nuxt run error Please provide a full demo |
To provide a full demo for integrating
By following these steps, you should have a working Nuxt 3 project with For additional resources and a template project, you can refer to the View UI Plus Project (Based on Nuxt) [1]. |
import ViewUIPlus from "view-ui-plus";
import "view-ui-plus/dist/styles/viewuiplus.css";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(ViewUIPlus, { transfer: true });
});
ERROR
SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/[email protected]/node_modules/view-ui-plus/dist/viewuiplus.min.js?v=747a3767' does not provide an export named 'default'
viewuiplus.min.esm.js => align one export
view-design/view-ui-project-nuxt#5 but no one answered her
The text was updated successfully, but these errors were encountered: