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
Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped #1139
Comments
i try to commect all code in server.ts and console.log variable AppServerModuleNgFactory from /dist/server/main.js, it returns undefined. |
Update: i update all packages manually and detect, that problem appears when i updated @angular-devkit/build-angular (from "~0.10.0" to 0.13.5) |
this happens even in empty project
|
Hi all, this is being addressed in angular/angular-cli#13868 |
…indows in server config This changes fixes `Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped`. At the moment the check for absolute path is not correct for windows. Fixes #13865 and fixes angular/universal#1139
…indows in server config This changes fixes `Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped`. At the moment the check for absolute path is not correct for windows. Fixes #13865 and fixes angular/universal#1139
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
First of all, sorry for my bad english :)
What is the expected behavior?
Correct answer of server.
What is the current behavior?
I create project with universal support three months ago and today i try to update dependencies of my project, all works but not universal, it crashe, because code
in server.ts (https://angular.io/guide/universal) return undefined. I opened this dist/server/main.js and didn't found this variables. I compare code of this file with code in my another project with the same solution and detect that my main file too small: 112 lines of code, when file in another project has 1000+ lines of code.
Content of dist/server/main.js file:
I built this with this configuration on angular.json
My server.ts file
What modules are related to this issue?
Minimal reproduction with instructions:
I don't know, all works, but broken when update npm packages.
Environment:
Angular CLI: 7.3.5
Node: 10.12.0
OS: win32 x64
Angular: 7.2.8
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
@angular-devkit/architect 0.13.5
@angular-devkit/build-angular 0.13.5
@angular-devkit/build-optimizer 0.13.5
@angular-devkit/build-webpack 0.13.5
@angular-devkit/core 7.3.5
@angular-devkit/schematics 7.3.5
@angular/cli 7.3.5
@angular/pwa 0.13.5
@ngtools/webpack 7.3.5
@schematics/angular 7.3.5
@schematics/update 0.13.5
rxjs 6.4.0
typescript 3.2.4
webpack 4.29.0
The text was updated successfully, but these errors were encountered: