Ma77Ball opened a new pull request, #5444:
URL: https://github.com/apache/texera/pull/5444

   ### What changes were proposed in this PR?
   - Change `frontend/src/environments/version.ts` to import `package.json` 
with a default import (`packageJson.version`) instead of a named import 
(`import { version }`).
   - Why it is a bug: Angular 21's webpack rejects named imports from JSON 
modules, so `ng serve` (dev) fails to compile and the dev server serves "Cannot 
GET /" (HTTP 404). Production builds are unaffected because `angular.json` 
fileReplacements swaps in `version.prod.ts`.
   ### Any related issues, documentation, discussions?
   Closes #5443 (regression introduced by #5153).
   ### How was this PR tested?
   - From `frontend/` on Node >=24, run `yarn start` and confirm the dev server 
compiles with no errors (previously failed on `version.ts` with `Failed to 
compile.`).
   - Open http://localhost:4200/ and confirm the app loads (HTTP 200, page 
title "Texera") instead of "Cannot GET /".
   - Confirm the UI footer still shows the version string from `package.json`.
   ### Was this PR authored or co-authored using generative AI tooling?
   Generated-by: Claude Code (Claude Opus 4.8)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to