Closed liudonghua123 closed 3 years ago
ts-morph
is an optional package (for example, because it's not needed for the code first approach). In this case, you must explicitly install it.
@kamilmysliwiec if the ts-morph
package is required for schema first, can it be added to the example project?
It seems ok when using npm
instead of yarn
. Maybe the dependence resolve around optional package
is different. npm
will install the related optional package
while yarn
will not install.
I am using npm and encountered the same problem
Bug Report
Current behavior
I want to just run the graphql example in this repo, so I cloned this repo, and
cd sample\12-graphql-schema-first
, executedyarn
andnpx ts-node src\generate-typings.ts
, then I got the following errors.Input Code
Not involved
Expected behavior
No errors
Possible Solution
Using npm instead of yarn.
Environment