vuepress-plugin-code-switcher icon indicating copy to clipboard operation
vuepress-plugin-code-switcher copied to clipboard

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

Open LapsTimeOFF opened this issue 3 years ago • 1 comments

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

LapsTimeOFF avatar Jan 18 '23 18:01 LapsTimeOFF

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.

tophcodes avatar Feb 02 '23 07:02 tophcodes