Kaifuny / vuepress-plugin-tabs

Vuepress plugin - Tabs Container for Vuepress
https://superbiger.github.io/vuepress-plugin-tabs/
Other
34 stars 14 forks source link

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

Open jmaneyrol69 opened 3 years ago

jmaneyrol69 commented 3 years ago

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

genygilles commented 3 years ago

@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?