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

JSX inside .js fails within the previewjs repo #1618

Open
fwouts opened this issue Apr 28, 2023 · 0 comments
Open

JSX inside .js fails within the previewjs repo #1618

fwouts opened this issue Apr 28, 2023 · 0 comments
Labels
bug Something isn't working low priority

Comments

@fwouts
Copy link
Owner

fwouts commented Apr 28, 2023

For example,

cannot be rendered in Preview.js.

This happens across VS Code and CLI.

Screenshot 2023-04-28 at 10 35 49 am

However, smoke tests work fine for this directory. It appears this is because smoke tests duplicate the directory outside of the monorepo. This is confirmed by moving the directory out, and confirming that Preview.js works again.

There must therefore be some broken mechanism that disables JSX source transformation based on a parent directory. I haven't quite figured out what the source of the bug is.

This seems low priority as it may only occur inside the previewjs repo, but if you see this bug happening in your own codebase, please comment below.

@fwouts fwouts added bug Something isn't working low priority labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority
Projects
None yet
Development

No branches or pull requests

1 participant