gluons / vue-github-buttons

:octocat: GitHub buttons component for Vue.
https://git.io/vue-github-buttons
Apache License 2.0
37 stars 10 forks source link

Vuepress issue @ static #14

Open maartenvanderhoef opened 5 years ago

maartenvanderhoef commented 5 years ago

First of all, thanks for implementing the button support for Vuepress +1 ! It works fine in vuepress dev mode, but when I build for static I'm having an error.

https://travis-ci.org/doingcloudright/airship.tf/jobs/489461062


/home/travis/build/doingcloudright/airship.tf/node_modules/vue-github-buttons/dist/vue-github-buttons.es.js:1
(function (exports, require, module, __filename, __dirname) { import { __awaiter, __generator, __extends, __decorate } from 'tslib';
                                                              ^^^^^^
SyntaxError: Unexpected token import
gluons commented 5 years ago

Hmm... VuePress can't handle ES module style import? 🤔
That's weird.

gluons commented 5 years ago

I've published v3.0.2-beta.0 with plugin tweak.
Import error gone. But some error still exists.

I don't know why.

gluons commented 5 years ago

Issue created on VuePress.

maartenvanderhoef commented 5 years ago

Thanks for all your effort, much appreciated!

gluons commented 5 years ago

Move to track on vuejs/vuepress#451.

Workaround here vuejs/vuepress#1414#issuecomment-470928007.