Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: e is not a function when serving production build #28358

Closed
1 task
pawelfras opened this issue Sep 5, 2024 · 1 comment · Fixed by #28359
Closed
1 task

TypeError: e is not a function when serving production build #28358

pawelfras opened this issue Sep 5, 2024 · 1 comment · Fixed by #28359
Assignees

Comments

@pawelfras
Copy link
Contributor

pawelfras commented Sep 5, 2024

Command

other

Is this a regression?

  • Yes, this behavior used to work in the previous version

Description

Fresh Angular 19.0.0-next.3 application with SSR (no custom code) fails while serving prod build via `serve:ssr:.

Minimal Reproduction

  • npx @angular/cli@19.0.0-next.3 new my-app
  • pnpm run build
  • pnpm run serve:ssr:my-app

Exception or Error

file:///Users/pawelfras/git/ng-19/dist/ng-19/server/main.server.mjs:1
import{a as u}from"./chunk-G42KAERA.mjs";import{f as e,o as t,q as o,r as p,s as a,t as n,u as r}from"./chunk-4E33NSMA.mjs";e();r();n();export{u as default,o as \u0275ServerRenderContext,a as \u0275destroyAngularServerApp,t as \u0275extractRoutesAndCreateRouteTree,p as \u0275getOrCreateAngularServerApp};
                                                                                                                            ^

TypeError: e is not a function
    at file:///Users/pawelfras/git/ng-19/dist/ng-19/server/main.server.mjs:1:125
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

Node.js v22.8.0

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 19.0.0-next.3
Node: 22.8.0
Package Manager: pnpm 9.7.1
OS: darwin arm64

Angular: 19.0.0-next.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.0-next.3
@angular-devkit/build-angular   19.0.0-next.3
@angular-devkit/core            19.0.0-next.3
@angular-devkit/schematics      19.0.0-next.3
@schematics/angular             19.0.0-next.3
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.15.0

Anything else relevant?

No response

@alan-agius4 alan-agius4 self-assigned this Sep 6, 2024
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes angular#28358
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes angular#28358
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes angular#28358
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes angular#28358
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes angular#28358
alan-agius4 added a commit that referenced this issue Sep 6, 2024
….js reference in manifest

The issue was addressed by changing the top-level import to a dynamic import.

Closes #28358
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants