You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Ma77Ball (via GitHub)" <gi...@apache.org> on 2026/06/07 02:57:42 UTC

[PR] fix(frontend): use default import for package.json version in dev build [texera]

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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): use default import for package.json version in dev build [texera]

Posted by "xuang7 (via GitHub)" <gi...@apache.org>.
xuang7 commented on PR #5444:
URL: https://github.com/apache/texera/pull/5444#issuecomment-4676151379

   Hi @Ma77Ball, I think this would be good to backport since it has already been merged. Could you open a backport PR targeting the release/v1.2 branch. Thank you!


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): use default import for package.json version in dev build [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #5444:
URL: https://github.com/apache/texera/pull/5444


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): use default import for package.json version in dev build [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #5444:
URL: https://github.com/apache/texera/pull/5444#issuecomment-4641253310

   Please add a test to guard it ;)


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): use default import for package.json version in dev build [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #5444:
URL: https://github.com/apache/texera/pull/5444#issuecomment-4641264545

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/5444?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 51.83%. Comparing base ([`f2f0564`](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`cef2037`](https://app.codecov.io/gh/apache/texera/commit/cef20374cd176b5c0848648e6ea9c453da712f1e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##               main    #5444      +/-   ##
   ============================================
   - Coverage     51.84%   51.83%   -0.02%     
     Complexity     2467     2467              
   ============================================
     Files          1067     1067              
     Lines         41258    41258              
     Branches       4437     4437              
   ============================================
   - Hits          21392    21387       -5     
   - Misses        18608    18616       +8     
   + Partials       1258     1255       -3     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `42.22% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `33.76% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.75% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `1.65% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.06% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `38.32% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `46.37% <100.00%> (-0.03%)` | :arrow_down: | |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.69% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [python](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.83% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/5444/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `58.69% <ø> (ø)` | | Carriedforward from [f2f0564](https://app.codecov.io/gh/apache/texera/commit/f2f056455d850f6d4f99d81ac7e128fb74906a44?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/5444?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): use default import for package.json version in dev build [texera]

Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball commented on PR #5444:
URL: https://github.com/apache/texera/pull/5444#issuecomment-4641480195

   Ready to merge


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org