vuepress-plugin-tabs icon indicating copy to clipboard operation
vuepress-plugin-tabs copied to clipboard

Plugin is broken when using "evergreen: true" in vuepress configuration

Open jmaneyrol69 opened this issue 3 years ago • 1 comments

We have decided to remove IE compatibility from our vuepress site, but when using the evergreen: true option in Vuepress config (as explained at https://vuepress.vuejs.org/config/#browser-compatibility), this seems to break the plugin altogether with a series of Javascript errors. The problem occurs both in Chrome and Firefox (latest versions).

Here is the dev console output:

Console_vuepress.log

jmaneyrol69 avatar Apr 06 '21 13:04 jmaneyrol69

@superbiger It seems due to the JSX in render function: https://github.com/superbiger/vuepress-plugin-tabs/blob/96cf59b10ccc8d877e8ba854a051ab8645e2215b/lib/components/Tabs.vue#L119

I think @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props are missing in package.json and maybe also a babel.config.js: https://github.com/vuejs/jsx#installation?

genygilles avatar Apr 08 '21 21:04 genygilles