简体   繁体   中英

Angular 6 Universal with ssr production build error

I'm new to angular 6 i almost fully completed my app but i' facing some issues with ssr.I followed this tutorial to do ssr tutorial but i'm facing issues in building while i run this npm run build:ssr && npm run serve:ssr comand i got two folders in in my dist folder one is browser and another is server. while running the command browser build is generated sucessfully but my server build encountered an error like this. 在此处输入图片说明

can any one figueout why this error occured.Any help is appreciable.

将node和npm升级到最新版本解决了该问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM