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

I have a JSX issue #66

Closed
chlbri opened this issue Nov 4, 2022 · 4 comments
Closed

I have a JSX issue #66

chlbri opened this issue Nov 4, 2022 · 4 comments

Comments

@chlbri
Copy link

chlbri commented Nov 4, 2022

When I try to create a component, I have this error:

[vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

I use the Conditional Drop example from the website

@martinpengellyphillips
Copy link
Contributor

See #53 (comment) (and if using Astro withastro/astro#5058)

@chlbri
Copy link
Author

chlbri commented Nov 5, 2022

The error is the same for both vite and astro addon.

@Ehesp
Copy link

Ehesp commented Nov 18, 2022

Looks like a fix for astro is coming in; withastro/astro#5437

@Ehesp
Copy link

Ehesp commented Nov 26, 2022

Release for Astro is live.

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

3 participants