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

Does not work with VuePress 2 #12

Open yupeshekhonov opened 1 year ago

yupeshekhonov commented 1 year ago

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?

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.

yupeshekhonov commented 1 year ago

The latest one - v2.0.0-beta.60