79157875

Date: 2024-11-05 06:25:58
Score: 0.5
Natty:
Report link

The problem was somewhat simple and wierd, my react file had an import statements looking like these :-

import * as react from "react";

while the esbuild compiled the jsx to React.createElement(...), noticing that my imports declared 'react' with smallcase 'r' while the jsx was transpiled with React.createElement with uppercase 'R'.
Fixing my imports to have a uppercase 'R' fixed the issue. Looks like esbuild doesn't look at the react imports while transpiling jsx.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Harit Saxena