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

umi创建的react项目开发vue组件时提示错误 #157

Open
liupei1995 opened this issue Dec 15, 2024 · 1 comment
Open

umi创建的react项目开发vue组件时提示错误 #157

liupei1995 opened this issue Dec 15, 2024 · 1 comment

Comments

@liupei1995
Copy link

umi创建的react项目开发vue组件时提示以下错误
At least one or <script> is required in a single file component.
image
image
image
image
image

@devilwjp
Copy link
Collaborator

devilwjp commented Dec 16, 2024

@liupei1995 你这个错误是你的umi项目对于vue-loader的添加和配置有问题,如果你使用的是veaury的webpack plugin,你需要将plugin插入到所有插件的第一位

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants