padarom / vuepress-plugin-code-switcher

:arrows_clockwise: Component that adds synchronized multi-language code blocks to your Vuepress sites
https://code-switcher.padarom.xyz
MIT License
41 stars 6 forks source link

SyntaxError: Importing binding name 'default' cannot be resolved by star export entries. #14

Open LapsTimeOFF opened 1 year ago

LapsTimeOFF commented 1 year ago

When I import the plugin in config.ts, it's making an error on the docs,

import { codeSwitcherPlugin } from 'vuepress-plugin-code-switcher'

export default defineUserConfig({
    ...
    plugins: [
      codeSwitcherPlugin()
    ],
    ...
});

The error is the following one :

image

padarom commented 1 year ago

Which version of Vuepress 2 specifically are you using? I noticed that since Vuepress 2 is still in beta, some newer versions that what I developed the Vuepress 2 support for are breaking. I'm not entirely sure if that's this plugin's fault or Vuepress 2's fault, but I'd need to know the version so I can try reproducing the issue.