[Bug] bug with build in node
Version
git latest
Reproduction link
http://none.com
Operating System
windows
Device
iis
Browser & Version
chrome latest
Steps to reproduce
build with ng build, deploy, try to open
What is expected?
the site open
What is actually happening?
Application has thrown an uncaught exception and is terminated:
ReferenceError: window is not defined
at Object.
Solution
Additional comments
Hi @luan122,
Thank you for working with our products.
Can you please give me all the steps that you did? I tried now 'npm install' -> 'ng build' -> 'cd dist' -> 'ng serve' and it is working fine.
Thank you, Rares
hi @rarestoma i'm trying to execute it with iisnode, i did the steps that u sent npm install -> ng build -> sent the build to the server and it didn't worked, i tried to execute it in node.js localy as well with node main.js and didn't worked as well only with ng serve but in node no
Hi @luan122,
Can you please give me the node commands so I can try it too?
Thank you, Rares
I'm having this same issue today. (The program won't start)
I followed this guide from the docs @ https://demos.creative-tim.com/paper-kit-2-angular/#/documentation/tutorial

When running the first command( npm install -g @angular/cli@latest)
I get the following error:

I've done some research on these two issues and I have yet to find a solution that has worked for me.
Stack overflow had some suggestions related to the "npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142"
@https://stackoverflow.com/questions/62528331/how-to-fix-npm-warn-deprecated-request2-88-2-request-has-been-deprecated-see
Please advise what versions of node, npm and angular work with this project as it seems the issue is that I need a different version of one or more of these.
& When running npm install I get the following errors
I should note that the package.json file is not actually missing.
Thank you for your time.