Skip to content

Import from from rxjs errors out the SSRing of the application #26235

@yharaskrik

Description

@yharaskrik

Command

serve

Is this a regression?

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

The previous version in which this bug was not present was

No response

Description

Importing and using from from rxjs throws error once page is requested

Minimal Reproduction

https://github.com/yharaskrik/angular-17-ssr-application-builder/tree/jaybell/from-rxjs-issue

yarn ng serve

open localhost:4200

Exception or Error

Unchanged output files: 2
Application bundle generation complete. [0.355 seconds]
Reloading client(s)...
6:04:49 AM [vite] Error when evaluating SSR module /main.server.mjs:
|- TypeError: Cannot read properties of undefined (reading 'from')
    at eval (/Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/.angular/vite-root/e068deec-5f27-448b-9ec4-996512fe0217/src/app/app.component.ts:4:20)
    at async instantiateModule (file:///Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:56052:9)

6:04:49 AM [vite] Internal server error: Cannot read properties of undefined (reading 'from')
      at eval (/Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/.angular/vite-root/e068deec-5f27-448b-9ec4-996512fe0217/src/app/app.component.ts:4:20)
      at async instantiateModule (file:///Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:56052:9)
6:04:49 AM [vite] Internal server error: Cannot read properties of undefined (reading 'from')
      at eval (/Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/.angular/vite-root/e068deec-5f27-448b-9ec4-996512fe0217/src/app/app.component.ts:4:20)
      at async instantiateModule (file:///Users/jaybell/WebstormProjects/angular-17-ssr-application-builder/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:56052:9) (x2)

Your Environment

Angular CLI: 17.0.0-rc.3
Node: 18.18.2
Package Manager: npm 9.8.1
OS: darwin arm64

Angular: 17.0.0-rc.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1701.0-next.0+sha-fdee8b7
@angular-devkit/build-angular   17.1.0-next.0+sha-fdee8b7
@angular-devkit/core            17.0.0-rc.3
@angular-devkit/schematics      17.0.0-rc.3
@angular/cli                    17.0.0-rc.3
@angular/ssr                    17.0.0-rc.3
@schematics/angular             17.0.0-rc.3
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.2

Anything else relevant?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions