Missing *.ts files (due to `npm link` ?)

后端 未结 4 2273
梦毁少年i
梦毁少年i 2020-12-31 08:22

I have this import statement in an Angular5 project:

import {plugins, SCECodeGenType} from \'sce-plugins/code-generation\';

this resolves t

4条回答
  •  迷失自我
    2020-12-31 08:37

    In Angular 6 "angular.json" file it's required to put "preserveSymlinks" under "options" Example:

    "defaults": {
            "build": {
              "builder": "@angular-devkit/build-angular:browser",
              "options": {
                "preserveSymlinks": true,
                "outputPath": "dist/ConsoleClient",
                "index": "src/index.html",
                "main": "src/main.ts",
                "polyfills": "src/polyfills.ts",
                "tsConfig": "src/tsconfig.app.json",
                "assets": [
                  "src/favicon.ico",
                  "src/assets",
                  "src/web.config"
                ],
    

提交回复
热议问题