angular - 输出路径为运行 ng add nguniversal/express-engine 时服务器目标不是字符串错误
问题描述
我通过运行@nguniversal/express-engine 得到这个错误,但首先我得到了一个未处理的异常:找不到模块'@schematics/angular/utility/workspace' 错误我通过运行 npm install -D @angular/cli 解决了这个问题走了,但现在我得到了这个错误
我尝试重新安装@nguniversal/express-engine 但没有帮助
我的 angular.json
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/CodingBlogs",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
解决方案
推荐阅读
- java - 接口在实现中无法识别相等的对象
- python - Python:将字典存储在列表中
- php - 使用快速插件 wordpress 缩小后,Revolution Slider 未加载
- node.js - Create-React-App + Heroku + Api 路由 = 404 错误
- angular - 我如何在角度中使用 *ngif 来更改 div 类
- unity3d - 我的可玩角色遇到障碍物时会向左或向右转
- c# - 如何使用 Entity Framework 和 Oracle Managed Data Access 连接到 Oracle 数据库?
- magento - 在小部件中重现脚本(Magento 电子商务)
- html - 无法弄清楚如何使我的可折叠导航栏按钮不总是可见(Bootstrap v.3)
- jsonata - 查找包含文本的字段并将其替换为另一个文本