Skip to content

ng g universal generate wrong path in tsconfig.server.json #10343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sandangel opened this issue Apr 15, 2018 · 1 comment
Closed

ng g universal generate wrong path in tsconfig.server.json #10343

sandangel opened this issue Apr 15, 2018 · 1 comment
Milestone

Comments

@sandangel
Copy link

sandangel commented Apr 15, 2018

Versions

Angular CLI: 6.0.0-rc.4
Node: 8.11.1
OS: darwin x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.5.6
@angular-devkit/build-angular      0.5.6
@angular-devkit/build-ng-packagr   0.5.6
@angular-devkit/build-optimizer    0.5.6
@angular-devkit/core               0.5.6
@angular-devkit/schematics         0.5.6
@angular/cli                       6.0.0-rc.4
@ngtools/json-schema               1.1.0
@ngtools/webpack                   6.0.0-rc.4
@schematics/angular                0.5.6
@schematics/update                 0.5.6
rxjs                               6.0.0-uncanny-rc.7
typescript                         2.7.2
webpack                            4.5.0

Repro steps

  • Step 1
    ng g application example
  • Step 2
    ng g universal --client-project example
  • Step 3
    ng run example:server would throw error

in angular.json, the root path is pointed to "projects/example/"
open tsconfig.server.json

Observed behavior

{
  "extends": "../tsconfig.json", // <- wrong path
  "compilerOptions": {
    "outDir": "../../out-tsc/app-server",
    "baseUrl": "./",
    "module": "commonjs",
    "types": []
  },
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ],
  "angularCompilerOptions": {
    "entryModule": "app/app.server.module#AppServerModule" // <- wrong path
  }
}

Desired behavior

{
  "extends": "../../tsconfig.json",
  "angularCompilerOptions": {
    "entryModule": "src/app/app.server.module#AppServerModule"
  }
}

Mention any other details that might be useful (optional)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants