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

Bug when running install schematic with Nx workspace #135

Closed
edbzn opened this issue Sep 2, 2019 · 1 comment
Closed

Bug when running install schematic with Nx workspace #135

edbzn opened this issue Sep 2, 2019 · 1 comment

Comments

@edbzn
Copy link

edbzn commented Sep 2, 2019

I'm submitting a...


[ ] Regression 
[ x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I generated an Angular application using nrwl/nx.

I want to setup SSR with Nest using the install schematic but I get the following error instantly after answering the first question :

? What is the name of your application? web
Cannot read property 'kind' of undefined

I checked what does this error mean and it seems to come from the util for express-engine findAppServerModuleExport().

Expected behavior

Since nx natively supports Nest I'm expecting the install schematic working properly.

Minimal reproduction of the problem with instructions

I used angular-nest preset to generate my app

npx create-nx-workspace myworkspace --preset angular-nest

Then once my workspace was ready I ran the install schematic as described in the nestjs/ng-universal README.md, targeting the Angular application I generated just before.

ng add @nestjs/ng-universal

Environment

  • nest: 6.2.4
  • @nrwl/workspace: 8.4.13
  • @nrwl/angular: 8.4.13
  • @nrwl/nest: 8.4.13
  • @nrwl/node: 8.4.13

For Tooling issues:

  • Node version: 10.15.3
  • Platform: Linux
@kamilmysliwiec
Copy link
Member

This schematic isn't compatible with Nx workspace. You can follow these steps to use it though:
https://github.com/servrox/nx-ng-nest-universal

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

No branches or pull requests

2 participants