Created
November 16, 2019 08:58
-
-
Save Maxim-Mazurok/651896a40577a78f55dc5571393829d9 to your computer and use it in GitHub Desktop.
Error log for declanvong/google-api-typings-generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/maxim/.nvm/versions/node/v12.13.0/bin/node /home/maxim/.nvm/versions/node/v12.13.0/lib/node_modules/npm/bin/npm-cli.js run start --scripts-prepend-node-path=auto | |
> gmail-api-typings-generator@ start /home/maxim/IdeaProjects/google-api-typings-generator | |
> ts-node src/google-api-typings-generator.ts --out ./types | |
/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:293 | |
return new TSError(diagnosticText, diagnosticCodes) | |
^ | |
TSError: ⨯ Unable to compile TypeScript: | |
src/google-api-typings-generator.ts:307:36 - error TS2503: Cannot find namespace 'gapi'. | |
307 function processResource(resource: gapi.client.discovery.RestDescription): any[] { | |
~~~~ | |
src/google-api-typings-generator.ts:342:60 - error TS2503: Cannot find namespace 'gapi'. | |
342 function getMethodParameterInterfaceName(resource, method: gapi.client.discovery.RestMethod) { | |
~~~~ | |
src/google-api-typings-generator.ts:343:52 - error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'. | |
Type 'undefined' is not assignable to type 'string'. | |
343 return firstLetterUp(resource) + firstLetterUp(getName(method.id ?? '')) + "Request"; | |
~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/google-api-typings-generator.ts:356:24 - error TS2503: Cannot find namespace 'gapi'. | |
356 function getType(type: gapi.client.discovery.JsonSchema, schemas: Record<string, gapi.client.discovery.JsonSchema> | undefined): string | TypescriptWriterCallback { | |
~~~~ | |
src/google-api-typings-generator.ts:356:82 - error TS2503: Cannot find namespace 'gapi'. | |
356 function getType(type: gapi.client.discovery.JsonSchema, schemas: Record<string, gapi.client.discovery.JsonSchema> | undefined): string | TypescriptWriterCallback { | |
~~~~ | |
src/google-api-typings-generator.ts:379:21 - error TS2571: Object is of type 'unknown'. | |
379 property.description && writer.comment(formatComment(property.description)); | |
~~~~~~~~ | |
src/google-api-typings-generator.ts:379:74 - error TS2571: Object is of type 'unknown'. | |
379 property.description && writer.comment(formatComment(property.description)); | |
~~~~~~~~ | |
src/google-api-typings-generator.ts:380:79 - error TS2571: Object is of type 'unknown'. | |
380 writer.property(propertyName, getType(property, schemas), property.required || false); | |
~~~~~~~~ | |
src/google-api-typings-generator.ts:419:34 - error TS2503: Cannot find namespace 'gapi'. | |
419 function getMethodReturn(method: gapi.client.discovery.RestMethod, schemas: Record<string, gapi.client.discovery.JsonSchema> | undefined) { | |
~~~~ | |
src/google-api-typings-generator.ts:419:92 - error TS2503: Cannot find namespace 'gapi'. | |
419 function getMethodReturn(method: gapi.client.discovery.RestMethod, schemas: Record<string, gapi.client.discovery.JsonSchema> | undefined) { | |
~~~~ | |
src/google-api-typings-generator.ts:461:32 - error TS2503: Cannot find namespace 'gapi'. | |
461 function isEmptySchema(schema: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:524:39 - error TS2503: Cannot find namespace 'gapi'. | |
524 resources: Record<string, gapi.client.discovery.RestResource> | undefined, | |
~~~~ | |
src/google-api-typings-generator.ts:525:40 - error TS2503: Cannot find namespace 'gapi'. | |
525 parameters: Record<string, gapi.client.discovery.JsonSchema> = {}, | |
~~~~ | |
src/google-api-typings-generator.ts:526:37 - error TS2503: Cannot find namespace 'gapi'. | |
526 schemas: Record<string, gapi.client.discovery.JsonSchema> | undefined, | |
~~~~ | |
src/google-api-typings-generator.ts:528:46 - error TS2503: Cannot find namespace 'gapi'. | |
528 forEachOrdered(resources, (resource: gapi.client.discovery.RestResource, resourceName) => { | |
~~~~ | |
src/google-api-typings-generator.ts:536:21 - error TS2571: Object is of type 'unknown'. | |
536 method.description && out.comment(formatComment(method.description)); | |
~~~~~~ | |
src/google-api-typings-generator.ts:536:69 - error TS2571: Object is of type 'unknown'. | |
536 method.description && out.comment(formatComment(method.description)); | |
~~~~~~ | |
src/google-api-typings-generator.ts:537:41 - error TS2571: Object is of type 'unknown'. | |
537 const requestBody = method.request && method.request.$ref | |
~~~~~~ | |
src/google-api-typings-generator.ts:537:59 - error TS2571: Object is of type 'unknown'. | |
537 const requestBody = method.request && method.request.$ref | |
~~~~~~ | |
src/google-api-typings-generator.ts:538:55 - error TS2571: Object is of type 'unknown'. | |
538 ? [{ parameter: 'body', type: method.request.$ref }] | |
~~~~~~ | |
src/google-api-typings-generator.ts:540:33 - error TS2571: Object is of type 'unknown'. | |
540 checkExists(method.id, 'method', 'id'); | |
~~~~~~ | |
src/google-api-typings-generator.ts:541:32 - error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'. | |
Type 'undefined' is not assignable to type 'string'. | |
541 out.method(getName(method.id), [{ | |
~~~~~~~~~~~~~~~~~~ | |
src/google-api-typings-generator.ts:541:40 - error TS2571: Object is of type 'unknown'. | |
541 out.method(getName(method.id), [{ | |
~~~~~~ | |
src/google-api-typings-generator.ts:545:98 - error TS2571: Object is of type 'unknown'. | |
545 const requestParameters: typeof parameters = { ...parameters, ...method.parameters }; | |
~~~~~~ | |
src/google-api-typings-generator.ts:583:59 - error TS2503: Cannot find namespace 'gapi'. | |
583 private processApi(destinationDirectory: string, api: gapi.client.discovery.RestDescription, actualVersion: boolean, url: string) { | |
~~~~ | |
src/google-api-typings-generator.ts:640:33 - error TS2571: Object is of type 'unknown'. | |
640 checkExists(schema.id); | |
~~~~~~ | |
src/google-api-typings-generator.ts:641:38 - error TS2571: Object is of type 'unknown'. | |
641 writer.interface(schema.id, () => { | |
~~~~~~ | |
src/google-api-typings-generator.ts:642:40 - error TS2571: Object is of type 'unknown'. | |
642 forEachOrdered(schema.properties, (data, key) => { | |
~~~~~~ | |
src/google-api-typings-generator.ts:643:29 - error TS2571: Object is of type 'unknown'. | |
643 data.description && writer.comment(formatComment(data.description)); | |
~~~~ | |
src/google-api-typings-generator.ts:643:78 - error TS2571: Object is of type 'unknown'. | |
643 data.description && writer.comment(formatComment(data.description)); | |
~~~~ | |
src/google-api-typings-generator.ts:644:78 - error TS2571: Object is of type 'unknown'. | |
644 writer.property(key, getType(data, api.schemas), data.required || false); | |
~~~~ | |
src/google-api-typings-generator.ts:647:29 - error TS2571: Object is of type 'unknown'. | |
647 if (schema.additionalProperties) { | |
~~~~~~ | |
src/google-api-typings-generator.ts:648:70 - error TS2571: Object is of type 'unknown'. | |
648 writer.property("[key: string]", getType(schema.additionalProperties, api.schemas)); | |
~~~~~~ | |
src/google-api-typings-generator.ts:668:43 - error TS2503: Cannot find namespace 'gapi'. | |
668 private request(url: string): Promise<gapi.client.discovery.DirectoryList> { | |
~~~~ | |
src/google-api-typings-generator.ts:672:51 - error TS2503: Cannot find namespace 'gapi'. | |
672 var api = JSON.parse(body) as gapi.client.discovery.DirectoryList; | |
~~~~ | |
src/google-api-typings-generator.ts:683:82 - error TS2503: Cannot find namespace 'gapi'. | |
683 public writeTemplate(filepath: string, template: (data: any) => string, api: gapi.client.discovery.RestDescription) { | |
~~~~ | |
src/google-api-typings-generator.ts:695:29 - error TS2503: Cannot find namespace 'gapi'. | |
695 public writeReadme(api: gapi.client.discovery.RestDescription) { | |
~~~~ | |
src/google-api-typings-generator.ts:713:44 - error TS2503: Cannot find namespace 'gapi'. | |
713 api = await this.request(url) as gapi.client.discovery.RestDescription; | |
~~~~ | |
src/google-api-typings-generator.ts:747:66 - error TS2503: Cannot find namespace 'gapi'. | |
747 private writePropertyValue(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, property: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:747:115 - error TS2503: Cannot find namespace 'gapi'. | |
747 private writePropertyValue(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, property: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:774:58 - error TS2503: Cannot find namespace 'gapi'. | |
774 private writeArray(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, items: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:774:104 - error TS2503: Cannot find namespace 'gapi'. | |
774 private writeArray(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, items: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:792:59 - error TS2503: Cannot find namespace 'gapi'. | |
792 private writeObject(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, object: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:792:106 - error TS2503: Cannot find namespace 'gapi'. | |
792 private writeObject(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, object: gapi.client.discovery.JsonSchema) { | |
~~~~ | |
src/google-api-typings-generator.ts:820:62 - error TS2503: Cannot find namespace 'gapi'. | |
820 private writeSchemaRef(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, schemaName: string) { | |
~~~~ | |
src/google-api-typings-generator.ts:838:63 - error TS2503: Cannot find namespace 'gapi'. | |
838 private writeProperties(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, record: Record<string, gapi.client.discovery.JsonSchema>) { | |
~~~~ | |
src/google-api-typings-generator.ts:838:125 - error TS2503: Cannot find namespace 'gapi'. | |
838 private writeProperties(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, record: Record<string, gapi.client.discovery.JsonSchema>) { | |
~~~~ | |
src/google-api-typings-generator.ts:852:66 - error TS2503: Cannot find namespace 'gapi'. | |
852 private writeResourceTests(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, ancestors: string, resourceName: string, resource: gapi.client.discovery.RestResource) { | |
~~~~ | |
src/google-api-typings-generator.ts:852:156 - error TS2503: Cannot find namespace 'gapi'. | |
852 private writeResourceTests(scope: TypescriptTextWriter, api: gapi.client.discovery.RestDescription, ancestors: string, resourceName: string, resource: gapi.client.discovery.RestResource) { | |
~~~~ | |
src/google-api-typings-generator.ts:876:59 - error TS2503: Cannot find namespace 'gapi'. | |
876 private writeTests(destinationDirectory: string, api: gapi.client.discovery.RestDescription, actualVersion: boolean, url: string) { | |
~~~~ | |
src/google-api-typings-generator.ts:947:21 - error TS2503: Cannot find namespace 'gapi'. | |
947 const list: gapi.client.discovery.DirectoryList = await this.request("https://www.googleapis.com/discovery/v1/apis"); | |
~~~~ | |
at createTSError (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:293:12) | |
at reportTSError (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:297:19) | |
at getOutput (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:399:34) | |
at Object.compile (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:457:32) | |
at Module.m._compile (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:530:43) | |
at Module._extensions..js (internal/modules/cjs/loader.js:973:10) | |
at Object.require.extensions.<computed> [as .ts] (/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:533:12) | |
at Module.load (internal/modules/cjs/loader.js:812:32) | |
at Function.Module._load (internal/modules/cjs/loader.js:724:14) | |
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! gmail-api-typings-generator@ start: `ts-node src/google-api-typings-generator.ts --out ./types` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the gmail-api-typings-generator@ start 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/maxim/.npm/_logs/2019-11-16T08_51_39_091Z-debug.log | |
Process finished with exit code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment