coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
3.85k stars 1.58k forks source link

HTML Entities Output Instead of JSX Tags (<View> appears as &lt;View&gt;) #336

Open rushter777 opened 2 days ago

rushter777 commented 2 days ago

Describe the bug

All .js files containing JSX syntax (e.g., , , etc.) are incorrectly outputting HTML entities instead of JSX tags. For instance, and render as <View> and <Card>, affecting the readability and functionality of the UI.

Link to the Bolt URL that caused the error

localhost:5173

Steps to reproduce

  1. Open any .js file with JSX content.
  2. Render the file to view the output.
  3. Observe that all JSX tags (e.g., , ) appear as HTML entities (<View>, <Card>).

Expected behavior

JSX tags should render correctly as and without being converted to HTML entities.

Actual behavior: All JSX tags render as HTML entities (e.g., renders as <View>), causing incorrect display and making debugging more challenging.

Screen Recording / Screenshot

No response

Platform

Additional context

This issue might be due to encoding configuration or a component processing bug that automatically escapes HTML entities in JSX.

chrismahoney commented 2 days ago

Could you please share the prompt you used where you encountered this issue? It sounds rare but I'm curious as to why that's happening.