You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the previous version in which this bug was not present was: @angular-devkit/[email protected]
Description
when run npm run build:ssr && npn run serve:ssr and open http://localhost:4000 from the browser it shows
Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped
at View.engine (C:\Users\rober\ng\test-ssr\dist\server.js:39238:23)
at View.render (C:\Users\rober\ng\test-ssr\dist\server.js:123884:8)
at tryRender (C:\Users\rober\ng\test-ssr\dist\server.js:121592:10)
at Function.render (C:\Users\rober\ng\test-ssr\dist\server.js:121544:3)
at ServerResponse.render (C:\Users\rober\ng\test-ssr\dist\server.js:130425:7)
at C:\Users\rober\ng\test-ssr\dist\server.js:135:9
at Layer.handle [as handle_request] (C:\Users\rober\ng\test-ssr\dist\server.js:123312:5)
at next (C:\Users\rober\ng\test-ssr\dist\server.js:123060:13)
at Route.dispatch (C:\Users\rober\ng\test-ssr\dist\server.js:123035:3)
at Layer.handle [as handle_request] (C:\Users\rober\ng\test-ssr\dist\server.js:123312:5)
A clear and concise description of the problem...
🔬 Minimal Reproduction
ng new test-ssr
cd test-ssr
ng add @nguniversal/express-engine --clientProject test-ssr
npm run build:ssr
npm run serve:ssr
# open http://localhost:4000 will show error
npm i @angular-devkit/[email protected]
npm run build:ssr
npm run serve:ssr
# will work normally
🔥 Exception or Error
Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped
at View.engine (C:\Users\rober\ng\test-ssr\dist\server.js:39238:23)
at View.render (C:\Users\rober\ng\test-ssr\dist\server.js:123884:8)
at tryRender (C:\Users\rober\ng\test-ssr\dist\server.js:121592:10)
at Function.render (C:\Users\rober\ng\test-ssr\dist\server.js:121544:3)
at ServerResponse.render (C:\Users\rober\ng\test-ssr\dist\server.js:130425:7)
at C:\Users\rober\ng\test-ssr\dist\server.js:135:9
at Layer.handle [as handle_request] (C:\Users\rober\ng\test-ssr\dist\server.js:123312:5)
at next (C:\Users\rober\ng\test-ssr\dist\server.js:123060:13)
at Route.dispatch (C:\Users\rober\ng\test-ssr\dist\server.js:123035:3)
at Layer.handle [as handle_request] (C:\Users\rober\ng\test-ssr\dist\server.js:123312:5)
…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 fixesangular/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 fixesangular/universal#1139
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: @angular-devkit/[email protected]Description
when run
npm run build:ssr && npn run serve:ssr
and open http://localhost:4000 from the browser it shows🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: