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

升级@vitejs/plugin-vue@4.2.0之后 ERROR: Unterminated regular expression #160

Closed
8 of 9 tasks
LUDA0831 opened this issue Apr 26, 2023 · 2 comments
Closed
8 of 9 tasks

Comments

@LUDA0831
Copy link

Related plugins

Describe the bug

升级@vitejs/plugin-vue@4.2.0之后再setup里直接写jsx会报错,@vitejs/plugin-vue@4.1.0没有问题
image

image

Reproduction

https://stackblitz.com/edit/vitejs-vite-348fqn?file=src%2FApp.vue,package.json&terminal=dev

Steps to reproduce

"@vitejs/plugin-vue": "4.2.0" 报错
"@vitejs/plugin-vue": "4.1.0" 没问题

System Info

System:
    OS: macOS 13.3.1
    CPU: (6) x64 Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
    Memory: 296.52 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.19.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.4 - /usr/local/bin/npm
  Browsers:
    Safari: 16.4
  npmPackages:
    @vitejs/plugin-vue: ^4.2.0 => 4.2.0 
    @vitejs/plugin-vue-jsx: ^3.0.1 => 3.0.1 
    vite: ^4.3.2 => 4.3.2

Used Package Manager

npm

Logs

No response

Validations

@LUDA0831
Copy link
Author

有相同问题
#159 (comment)

@SPARON
Copy link

SPARON commented Apr 26, 2023

之前4.1.0版本是没有问题的,但是通过升级依赖库后发现4.2.0出现上述问题,然后退回版本到4.1.0、4.0.0依然会出现上述问题,目前退回到3.2.2版本才能正常运行。

@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants