maciejtreder / ng-toolkit

:star: Angular tool-box! Start your PWA in two steps! Add Serverless support for existing projects and much more
https://www.angular-universal-pwa.maciejtreder.com
MIT License
1.12k stars 156 forks source link

Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped #827

Open Sangram9693 opened 4 years ago

Sangram9693 commented 4 years ago

I'm submitting a...


[ ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package


[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[ ] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug

Current behavior

bolg-almightytricks@0.0.0 server D:\sangram\mywebsite\bolg-almightytricks node local.js

Listening on: http://localhost:4000 Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped at View.engine (D:\sangram\mywebsite\bolg-almightytricks\dist\server\main.js:1:1179115) at View.render (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:17191:8) at tryRender (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:12424:10) at Function.render (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:12376:3) at ServerResponse.render (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:24788:7) at D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:143:9 at Layer.handle [as handle_request] (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:15808:5) at next (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:14729:13) at Route.dispatch (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:14704:3) at Layer.handle [as handle_request] (D:\sangram\mywebsite\bolg-almightytricks\dist\server.js:15808:5)

Expected behavior

It should return valid web page

Minimal reproduction of the problem with instructions

Example repository

What is the motivation / use case for changing the behavior?

Environment


Angular version: 9.1.11


- Node version: 12.1.0
- Platform:  Windows

Others:

atif-shamim commented 3 years ago

I am also facing same issue