Ma77Ball opened a new issue, #5443: URL: https://github.com/apache/texera/issues/5443
### What happened? The frontend fails to compile in dev mode (`ng serve`, i.e. `yarn start` / local dev) on `main`, so the dev server returns "Cannot GET /" (HTTP 404) instead of the app. Expected: it compiles and serves the UI at http://localhost:4200. Root cause: `frontend/src/environments/version.ts` uses a named import from a JSON module (`import { version } from "../../package.json"`). Angular 21's webpack rejects named imports from JSON modules. Production builds are unaffected because `angular.json` fileReplacements swaps in `version.prod.ts`. Regression introduced by #5153. ### How to reproduce? 1. Check out current `main` and use Node >=24 (required by `frontend/package.json` engines). 2. `cd frontend && yarn install && yarn start` 3. Observe `Failed to compile.` with the version.ts error below. 4. `curl http://localhost:4200/` returns HTTP 404 "Cannot GET /". ### Version/Branch 1.3.0-incubating-SNAPSHOT (main) ### Commit Hash (Optional) e9f2b8ed3 (introduced by #5153) ### What browsers are you seeing the problem on? N/A (build-time compile failure, not browser-specific) ### Relevant log output ``` ./src/environments/version.ts:24:2-9 - Error: Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon) Failed to compile. ``` -- 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]
