Conversation
esbuild only processes JSX in .jsx files by default. The auth and
navigation components (LoginForm.js, LoginPage.js, ProfilePage.js,
RegistrationForm.js, Navigation.js) use JSX but have .js extensions,
causing "The JSX syntax extension is not currently enabled" errors.
Add loader: { '.js': 'jsx' } to the buildEsm() esbuild config so .js
files are parsed as JSX, matching the existing webpack CJS build behavior.
AI-Generated: true
HolimaX
merged commit Sep 8, 2026
302727f
into
feature/Add-ESI-Transifex-OKTAforPCD1.3
1 of 6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build:libstep failed because esbuild's ESM build couldn't parse JSX syntax in.jsfiles.jsxfiles by default — the auth/navigation components (LoginForm.js,LoginPage.js,ProfilePage.js,RegistrationForm.js,Navigation.js) contain JSX but use the.jsextensionloader: { '.js': 'jsx' }to thebuildEsm()esbuild config inscripts/build-lib.js, matching the behavior of the webpack CJS build which already handles this via@babel/preset-reactTest plan
npm run build:libcompletes without errors (bothdist/cjsanddist/esmproduced)npm run build-nixsucceeds end-to-end in CIhttps://app.circleci.com/agents/gh/HolimaX/chat/17b8f823-4022-4df4-8b71-bfd17121049e