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 bug with NODE_ENV=production #2618

Closed
colinhacks opened this issue Apr 11, 2023 · 1 comment
Closed

JSX bug with NODE_ENV=production #2618

colinhacks opened this issue Apr 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@colinhacks
Copy link
Contributor

colinhacks commented Apr 11, 2023

What version of Bun is running?

Canary 0.6.0

What platform is your computer?

No response

What steps can reproduce the bug?

import React from "react";
const tag = <img src={"/discord.svg"} />;
console.log(tag);

Run this file with BUN_ENV=production or NODE_ENV=production:

$ BUN_ENV=production bun run repro.tsx
[0.03ms] ".env"
1 | import React from "react";
2 | const tag = <img src={"/discord.svg"} />;
                ^
ReferenceError: Can't find variable: $$typeof_e0cf17fb09011b12
      at /Users/colinmcd94/Documents/bun/site/repro.tsx:2:13

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@colinhacks colinhacks added the bug Something isn't working label Apr 11, 2023
@colinhacks colinhacks changed the title JSX inlining bug JSX bug in production Apr 11, 2023
@colinhacks colinhacks changed the title JSX bug in production JSX bug with NODE_ENV=production Apr 11, 2023
@paperclover
Copy link
Member

this got fixed at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants