nestjs / schematics

Nest architecture element generation based on Angular schematics 🎬

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deprecated tsmorph function addExistingSourceFile

davidilling opened this issue · comments

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

Running npx nest g ng-app throws antsProject.addExistingSourceFile is not a function error. addExistingSourceFile was deprecated in tsmorph and is causing nest g ng-app to error. Updating to addSourceFileAtPath resolves error

https://github.com/dsherret/ts-morph/blob/85a173fd7102585fcc1ad2c8335716160ee0d4ea/packages/ts-morph/breaking-changes.md#L18

Expected behavior

creates angular client

Minimal reproduction of the problem with instructions

install nest locally
run npx nest g ng-app

What is the motivation / use case for changing the behavior?

Fixing the above bug

Environment


Nest version: 7.1.1
 
For Tooling issues:
- Node version: v12.16.1
- Platform:  Mac

I'd suggest not using the ng-app schematic. We plan to deprecate and remove it soon. For initializing Angular application, please, use the Angular CLI directly.