I ran npm install at packages/aws-appsync and got the following error:
$ npm install
> aws-appsync@4.0.0 prepare aws-mobile-appsync-sdk-js/packages/aws-appsync
> tsc
src/link/offline-link.ts:420:17 - error TS2698: Spread types may only be created from object types.
420 ...entries,
~~~~~~~~~~
Found 1 error.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! aws-appsync@4.0.0 prepare: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the aws-appsync@4.0.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/john/.npm/_logs/2020-08-12T14_44_07_060Z-debug.log
A search on Google turned up that this was an old error purportedly fixed in TypeScript Version 3.2. I'm not sure which version of TypeScript the developers are using, but it appears that the code will not compile under the most current.
UPDATE:
Doing a bit of exploration, it seems the problem can be easily fixed by adding the type declaration:
Attempting to compile the current code base to get a better handle on how everything really works for a major project. After installing typescript
I ran
npm install
atpackages/aws-appsync
and got the following error:A search on Google turned up that this was an old error purportedly fixed in TypeScript Version 3.2. I'm not sure which version of TypeScript the developers are using, but it appears that the code will not compile under the most current.
UPDATE:
Doing a bit of exploration, it seems the problem can be easily fixed by adding the type declaration:
However, that leaves my base question: How is this even compiling, leastwise passing unit tests?