Skip to content
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

Error when adding SSR support from angular-cli #546

Closed
2 tasks
damiencal opened this issue Apr 2, 2020 · 1 comment
Closed
2 tasks

Error when adding SSR support from angular-cli #546

damiencal opened this issue Apr 2, 2020 · 1 comment

Comments

@damiencal
Copy link

I'm submitting a...

  • [ x] Bug report
  • Feature request
  • Documentation issue or request

Current behavior

When adding SSR using Angular CLI: ng add @nguniversal/express-engine

This error appears:
Module file (/src/@app/app.module.ts) not found

Expected behavior

Using Angular-CLI commands should work with ngx-rocket so that SSR can be added.

Minimal reproduction of the problem with instructions

Environment



ngX-Rocket: 8.0.0
Node.js: v12.16.1
Npm: 6.14.4
OS: linux x64 5.5.11-200.fc31.x86_64

Generated project options:
{
  "generator-ngx-rocket": {
    "version": "8.0.0",
    "props": {
      "location": "path",
      "strict": false,
      "skipInstall": false,
      "skipQuickstart": false,
      "initGit": true,
      "usePrefix": true,
      "appName": "iko",
      "target": [
        "web",
        "cordova"
      ],
      "pwa": true,
      "mobile": [
        "ios",
        "android"
      ],
      "ui": "bootstrap",
      "auth": true,
      "lazy": true,
      "angulartics": true,
      "languages": [
        "de-DE",
        "en-US",
        "fr-FR",
        "zh-CN"
      ],
      "analyticsProvider": "gtm",
      "tools": [
        "prettier",
        "hads",
        "compodoc",
        "jest",
        "puppeteer"
      ],
      "utility": [],
      "deploy": "none",
      "projectName": "iko",
      "packageManager": "npm",
      "desktop": []
    }
  }
}

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.1.0
Node: 12.16.1
OS: linux x64

Angular: 9.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.0
@angular-devkit/build-angular     0.901.0
@angular-devkit/build-optimizer   0.901.0
@angular-devkit/build-webpack     0.901.0
@angular-devkit/core              9.1.0
@angular-devkit/schematics        9.1.0
@ngtools/webpack                  9.1.0
@nguniversal/common               9.1.0
@nguniversal/express-engine       9.1.0
@schematics/angular               9.1.0
@schematics/update                0.901.0
rxjs                              6.5.4
typescript                        3.8.3
webpack                           4.42.0


Others:

Fedora 31, NPM

@sinedied
Copy link
Member

sinedied commented Apr 2, 2020

Please see #472 for background and workaround.

This issue should be posted to @nguniversal/express-engine as it seems their schematics cannot follow typescript path aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants