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

Does not work with VuePress 2

Open yupeshekhonov opened this issue 2 years ago • 2 comments

When I import the plugin in the config.ts file and then use it in the plugins, I cannot build my project anymore.

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

plugins: [
     codeSwitcherPlugin(),
  ],

After these two tiny changes are made, I started receiving the following error in the console when I try to build the project:

Failed to load url C:/Users/yupeshekhonov/Documents/GitHub/unique_docs/docs/.vuepress/.temp/internal/layoutComponents (resolved id: C:/Users/yupeshekhonov/Documents/GitHub/unique_docs/docs/.vuepress/.temp/internal/layoutComponents). Does the file exist?

yupeshekhonov avatar Jan 12 '23 08:01 yupeshekhonov

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.

padarom avatar Feb 02 '23 07:02 padarom

The latest one - v2.0.0-beta.60

yupeshekhonov avatar Feb 07 '23 11:02 yupeshekhonov