Skip to content

Some problem with build on vite-ssg #50

@AndrewGanzha

Description

@AndrewGanzha

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions