Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: @rsbuild/plugin-vue does not work properly in rspress #1516

Closed
LonelySnowman opened this issue Oct 22, 2024 · 3 comments
Closed

[Bug]: @rsbuild/plugin-vue does not work properly in rspress #1516

LonelySnowman opened this issue Oct 22, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@LonelySnowman
Copy link

LonelySnowman commented Oct 22, 2024

Version

System:
OS: Windows 10 10.0.19045
CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Memory: 3.88 GB / 15.78 GB
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.19041.4355
npmPackages:
rspress: ^1.33.1 => 1.33.1
@rsbuild/plugin-vue: ^1.0.1 => 1.0.1

Details

My rspress config:

import { defineConfig } from 'rspress/config';
import { pluginVue } from '@rsbuild/plugin-vue';

export default defineConfig({
    root: 'docs',
    outDir: 'dist',
    builderPlugins: [pluginVue()],
});

Run rspress dev export error:

Error: [VueLoaderPlugin Error] No matching use for vue-loader is found.
Make sure the rule matching .vue files include vue-loader in its use.

Reproduce link

https://github.com/LonelySnowman/rspress-vue-demo

Reproduce Steps

1.run npm install
2.run npm run dev
3.check the error

@LonelySnowman LonelySnowman added the 🐞 bug Something isn't working label Oct 22, 2024
@Timeless0911
Copy link
Collaborator

Rspress is a react-based static site generator.

@Timeless0911 Timeless0911 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@LonelySnowman
Copy link
Author

@Timeless0911 大佬我看官网写的支持 Vue SFC。
Image
Image

@Timeless0911
Copy link
Collaborator

Timeless0911 commented Oct 22, 2024

第一段的主语是 Vitepress 哈
第二段只是一个插件配置的示例,如果想要使用 Vue 进行渲染,还需要做很多额外的工作,社区贡献者有一个 https://www.npmjs.com/package/rspress-plugin-vue 包进行尝试,你可以尝试看看

#133 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants