Type problem when using plugins
option
#870
Answered
by
meteorlxy
KiritaniAyaka
asked this question in
Q&A
-
I wrote the config file refer to this document but I'm using My config file: import { defineUserConfig } from 'vuepress'
import registerComponentsPlugin from '@vuepress/plugin-register-components'
import { path } from '@vuepress/utils'
const config = defineUserConfig({
...
plugins: [
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
],
...
})
module.exports = config My vscode give me an error: I think this is because So does anyone know how do i fix it? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
meteorlxy
May 3, 2022
Replies: 1 comment 1 reply
-
I'm afraid that your |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KiritaniAyaka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm afraid that your
vuepress
version is lower than2.0.0-beta.40
. Runvuepress info
to check it.