小编phe*_*ric的帖子

Angular8 : ng run => '项目目标不存在。' 使用 i18n 时

基于这些教程:https : //angular-templates.io/tutorials/about/angular-internationalization-i18n-multi-language-apphttps://medium.com/@ismaestro/angular-7-example-app- with-angularcli-angular-universal-i18n-official-firebase-66deac2dc31e 我正在尝试使用 i18n 作为国际化系统构建和使用 Angular 8 应用程序。

但是,当我尝试运行时npm build:ssr(参见下文),我得到An unhandled exception occurred: Project target does not exist.

在这里,angular.json:

{
    "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
    "version": 1,
    "newProjectRoot": "projects",
    "projects": {
        "boilerplate": {
            "root": "",
            "sourceRoot": "src",
            "projectType": "application",
            "architect": {
                "build": {
                    "builder": "@angular-devkit/build-angular:browser",
                    "options": {
                        "outputPath": "dist",
                        "index": "src/index.html",
                        "main": "src/main.ts",
                        "tsConfig": "tsconfig.app.json",
                        "polyfills": "src/polyfills.ts",
                        "assets": [
                            "src/assets",
                            "src/favicon.ico"
                        ],
                        "styles": [
                            "src/styles.scss"
                        ],
                        "scripts": []
                    },
                    "configurations": {
                        "en": {
                            "outputPath": "dist/browser/", …
Run Code Online (Sandbox Code Playgroud)

angular-i18n angular angular8

1
推荐指数
1
解决办法
9114
查看次数

标签 统计

angular ×1

angular-i18n ×1

angular8 ×1