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 cannot parse jsx syntax appearing in js files in vue2 #3794

Closed
Dengpei1688 opened this issue Oct 22, 2024 · 1 comment
Closed
Labels
🐞 bug Something isn't working

Comments

@Dengpei1688
Copy link

Version

rsbuild最新版本

项目vue2

Details

在vue2项目,js文件中采用jsx语法,在webpack5中运行正常,

接入rsbuild后,提示语法错误: Expected '>', got 'class'

Reproduce link

May I ask what specific configuration is required ?

Reproduce Steps

In the Vue2 project, the jsx syntax is used in the js file, and it runs normally in webpack 5,

After connecting rsbuild, a syntax error message appears

@Dengpei1688 Dengpei1688 added the 🐞 bug Something isn't working label Oct 22, 2024
@chenjiahan
Copy link
Member

See: #2599

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