already solved ,i just check angular universal on github ,someone have this problem either,to solved this ,You can use the externalDependencies option. Which can be configured in angular.json."server": { "builder": "@angular-devkit/build-angular:server", "options": { "outputPath": "dist/server", "main": "server.ts", "tsConfig": "tsconfig.server.json", "externalDependencies": [ "pg" ] }, ... }
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…