nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.54k stars 2.35k forks source link

Nest Library generation fails in v20.0.0 #28404

Open anthony-b-dev opened 2 weeks ago

anthony-b-dev commented 2 weeks ago

Current Behavior

nx g @nx/nest:lib fgb-tenant

NX Generating @nx/nest:library

NX Could not find root flat config file

Expected Behavior

Library is generated

GitHub Repo

No response

Steps to Reproduce

  1. Run the nest library generation command

Nx Report

Node : 20.11.1 OS : win32-x64 Native Target : x86_64-windows npm : 9.6.6

nx (global) : 20.0.0 nx : 20.0.0 @nx/js : 20.0.0 @nx/jest : 20.0.0 @nx/eslint : 20.0.0 @nx/workspace : 20.0.0 @nx/angular : 20.0.0 @nx/cypress : 20.0.0 @nx/devkit : 20.0.0 @nx/esbuild : 20.0.0 @nx/eslint-plugin : 20.0.0 @nx/express : 20.0.0 @nx/nest : 20.0.0 @nx/node : 20.0.0 @nx/web : 20.0.0 @nx/webpack : 20.0.0 typescript : 5.5.4

Community plugins: @ngrx/component-store : 18.1.0 @ngrx/effects : 18.1.0 @ngrx/entity : 18.1.0 @ngrx/eslint-plugin : 18.1.0 @ngrx/operators : 18.1.0 @ngrx/router-store : 18.1.0 @ngrx/schematics : 18.1.0 @ngrx/store : 18.1.0 @ngrx/store-devtools : 18.1.0

Failure Logs

NX Generating @nx/nest:library

NX Could not find root flat config file

Package Manager Version

No response

Operating System

Additional Information

I have tried it with the directory command, nx g lib, and the fully expanded command. Nothing works.

abdul-alim commented 2 weeks ago

I am getting the below error while setting up nest project.

NX The "@nx/nest" plugin doesn't yet support the existing TypeScript setup

gperdomor commented 2 weeks ago

This is related to https://github.com/nrwl/nx/issues/28322

ndcunningham commented 1 week ago

Hey, thanks for reporting an issue.

To paraphrase from the above

As mentioned in Nx v20 blog post announcement, if you need to use other plugins while they don't support the new TS setup, please create an empty workspace with the apps preset: npx -y create-nx-workspace@latest --preset=apps