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

Syntax errors in Terminal #224

Open
LKessell opened this issue Jul 17, 2024 · 3 comments
Open

Syntax errors in Terminal #224

LKessell opened this issue Jul 17, 2024 · 3 comments

Comments

@LKessell
Copy link

I began seeing many of these syntax errors in the terminal when starting up my Vite app:
image

I am using version 3.6.0 of the vite-plugin-swc package, and am seeing the errors on both Windows 10 and Windows 11. Upgrading the package to 3.7.0 has not resolved the issue.
Errors are reported in the terminal, but my app still runs/builds without issue and seems to work as expected.

Thank you!

@ArnaudBarre
Copy link
Member

Do you use plugins?
This is probably related to the v1.7 of SWC.

@LKessell
Copy link
Author

Hi there, yes I am using a few plugins in addition to this one. @vitejs/plugin-basic-ssl, vite-plugin-node-polyfills, and vite-plugin-svgr
All are updated to the most recent versions, but it does look like v1.7 of SWC was released more recently

@ArnaudBarre
Copy link
Member

Yeah SWC plugins need an update after 1.7, see this tweet: https://twitter.com/kdy1dev/status/1813796117513191923
This is sad but they are still considered an experimental API

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

No branches or pull requests

2 participants