-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello! I want to take your package in my project with vite-ssg, but when I wanna build have some problem'
import { VueTelegramPlugin } from "vue-tg";
^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'VueTelegramPlugin' not found. The requested module 'vue-tg' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
This how my code looks like:
import { VueTelegramPlugin } from 'vue-tg'
export const createApp = ViteSSG(
// the root component
App,
// vue-router options
{ routes },
// function to have custom setups
({ app, router }) => {
app.use(VueTelegramPlugin)
},
)
Metadata
Metadata
Assignees
Labels
No labels