Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Typescript compilation problems while upgrading pinecone client in angular project #105

Closed
2 tasks done
zmiju opened this issue Sep 10, 2023 · 3 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@zmiju
Copy link

zmiju commented Sep 10, 2023

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

I installed Pinecone in angular project in firebase functions with npm uninstall @pinecone-database/pinecone.

Previously it worked well, but after introducing version 1 of pinecone, I cannot deploy functions. I receive over 1000 bugs while deploying. Here is the summary of the message:

Errors Files 51 node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.dom.d.ts:25 1002 node_modules/@types/web/index.d.ts:7

They disappear when I uninstall pinecone again, this is how I know that the problem is related to pinecone.
I even downgraded pinecone library to version 0.1.6 and it started working again.

Exapmple of bugs are:

node_modules/@types/web/index.d.ts:18116:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'XPathResult'
node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/lib.dom.d.ts:17276:14 17276 readonly FIRST_ORDERED_NODE_TYPE: number;
node_modules/@types/web/index.d.ts:18111:14 - error TS2717: Subsequent property declarations must have the same type.
node_modules/@types/web/index.d.ts:17593:13 - error TS2403: Subsequent variable declarations must have the same type.

I reinstalled pinecone several times and nothing worked. I also searched for answer on pinecone forum, but the problem didn't appear. I created totally new angular project, copied sources files and tried to launch functions from scratch, but it didn't help either.

Expected Behavior

To work well after installing new pinecone version for angular project firebase functions.

Steps To Reproduce

  1. Generate new angular project with functions
  2. Go to functions folder
  3. Install pinecone with npm i @pinecone-database/pinecone
  4. Try to deploy function with firebase deploy --only functions

Relevant log output

../node_modules/@types/web/index.d.ts:17360:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'INT_VEC4' must be of type 'number', but here has type '35669'.

17360     readonly INT_VEC4: 0x8B55;
                   ~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16407:14
    16407     readonly INT_VEC4: GLenum;
                       ~~~~~~~~
    'INT_VEC4' was also declared here.

../node_modules/@types/web/index.d.ts:17361:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BOOL' must be of type 'number', but here has type '35670'.

17361     readonly BOOL: 0x8B56;
                   ~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16321:14
    16321     readonly BOOL: GLenum;
                       ~~~~
    'BOOL' was also declared here.

../node_modules/@types/web/index.d.ts:17362:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BOOL_VEC2' must be of type 'number', but here has type '35671'.

17362     readonly BOOL_VEC2: 0x8B57;
                   ~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16322:14
    16322     readonly BOOL_VEC2: GLenum;
                       ~~~~~~~~~
    'BOOL_VEC2' was also declared here.

../node_modules/@types/web/index.d.ts:17363:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BOOL_VEC3' must be of type 'number', but here has type '35672'.

17363     readonly BOOL_VEC3: 0x8B58;
                   ~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16323:14
    16323     readonly BOOL_VEC3: GLenum;
                       ~~~~~~~~~
    'BOOL_VEC3' was also declared here.

../node_modules/@types/web/index.d.ts:17364:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BOOL_VEC4' must be of type 'number', but here has type '35673'.

17364     readonly BOOL_VEC4: 0x8B59;
                   ~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16324:14
    16324     readonly BOOL_VEC4: GLenum;
                       ~~~~~~~~~
    'BOOL_VEC4' was also declared here.

../node_modules/@types/web/index.d.ts:17365:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FLOAT_MAT2' must be of type 'number', but here has type '35674'.

17365     readonly FLOAT_MAT2: 0x8B5A;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16370:14
    16370     readonly FLOAT_MAT2: GLenum;
                       ~~~~~~~~~~
    'FLOAT_MAT2' was also declared here.

../node_modules/@types/web/index.d.ts:17366:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FLOAT_MAT3' must be of type 'number', but here has type '35675'.

17366     readonly FLOAT_MAT3: 0x8B5B;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16371:14
    16371     readonly FLOAT_MAT3: GLenum;
                       ~~~~~~~~~~
    'FLOAT_MAT3' was also declared here.

../node_modules/@types/web/index.d.ts:17367:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FLOAT_MAT4' must be of type 'number', but here has type '35676'.

17367     readonly FLOAT_MAT4: 0x8B5C;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16372:14
    16372     readonly FLOAT_MAT4: GLenum;
                       ~~~~~~~~~~
    'FLOAT_MAT4' was also declared here.

../node_modules/@types/web/index.d.ts:17368:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'SAMPLER_2D' must be of type 'number', but here has type '35678'.

17368     readonly SAMPLER_2D: 0x8B5E;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16483:14
    16483     readonly SAMPLER_2D: GLenum;
                       ~~~~~~~~~~
    'SAMPLER_2D' was also declared here.

../node_modules/@types/web/index.d.ts:17369:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'SAMPLER_CUBE' must be of type 'number', but here has type '35680'.

17369     readonly SAMPLER_CUBE: 0x8B60;
                   ~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16484:14
    16484     readonly SAMPLER_CUBE: GLenum;
                       ~~~~~~~~~~~~
    'SAMPLER_CUBE' was also declared here.

../node_modules/@types/web/index.d.ts:17370:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_ENABLED' must be of type 'number', but here has type '34338'.

17370     readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16586:14
    16586     readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_ENABLED' was also declared here.

../node_modules/@types/web/index.d.ts:17371:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_SIZE' must be of type 'number', but here has type '34339'.

17371     readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
                   ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16589:14
    16589     readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17372:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_STRIDE' must be of type 'number', but here has type '34340'.

17372     readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16590:14
    16590     readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_STRIDE' was also declared here.

../node_modules/@types/web/index.d.ts:17373:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_TYPE' must be of type 'number', but here has type '34341'.

17373     readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
                   ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16591:14
    16591     readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:17374:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_NORMALIZED' must be of type 'number', but here has type '34922'.

17374     readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16587:14
    16587     readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_NORMALIZED' was also declared here.

../node_modules/@types/web/index.d.ts:17375:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_POINTER' must be of type 'number', but here has type '34373'.

17375     readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16588:14
    16588     readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_POINTER' was also declared here.

../node_modules/@types/web/index.d.ts:17376:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'VERTEX_ATTRIB_ARRAY_BUFFER_BINDING' must be of type 'number', but here has type '34975'.

17376     readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16585:14
    16585     readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'VERTEX_ATTRIB_ARRAY_BUFFER_BINDING' was also declared here.

../node_modules/@types/web/index.d.ts:17377:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'IMPLEMENTATION_COLOR_READ_TYPE' must be of type 'number', but here has type '35738'.

17377     readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16401:14
    16401     readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'IMPLEMENTATION_COLOR_READ_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:17378:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'IMPLEMENTATION_COLOR_READ_FORMAT' must be of type 'number', but here has type '35739'.

17378     readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16400:14
    16400     readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'IMPLEMENTATION_COLOR_READ_FORMAT' was also declared here.

../node_modules/@types/web/index.d.ts:17379:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'COMPILE_STATUS' must be of type 'number', but here has type '35713'.

17379     readonly COMPILE_STATUS: 0x8B81;
                   ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16335:14
    16335     readonly COMPILE_STATUS: GLenum;
                       ~~~~~~~~~~~~~~
    'COMPILE_STATUS' was also declared here.

../node_modules/@types/web/index.d.ts:17380:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'LOW_FLOAT' must be of type 'number', but here has type '36336'.

17380     readonly LOW_FLOAT: 0x8DF0;
                   ~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16424:14
    16424     readonly LOW_FLOAT: GLenum;
                       ~~~~~~~~~
    'LOW_FLOAT' was also declared here.

../node_modules/@types/web/index.d.ts:17381:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'MEDIUM_FLOAT' must be of type 'number', but here has type '36337'.

17381     readonly MEDIUM_FLOAT: 0x8DF1;
                   ~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16439:14
    16439     readonly MEDIUM_FLOAT: GLenum;
                       ~~~~~~~~~~~~
    'MEDIUM_FLOAT' was also declared here.

../node_modules/@types/web/index.d.ts:17382:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'HIGH_FLOAT' must be of type 'number', but here has type '36338'.

17382     readonly HIGH_FLOAT: 0x8DF2;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16398:14
    16398     readonly HIGH_FLOAT: GLenum;
                       ~~~~~~~~~~
    'HIGH_FLOAT' was also declared here.

../node_modules/@types/web/index.d.ts:17383:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'LOW_INT' must be of type 'number', but here has type '36339'.

17383     readonly LOW_INT: 0x8DF3;
                   ~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16425:14
    16425     readonly LOW_INT: GLenum;
                       ~~~~~~~
    'LOW_INT' was also declared here.

../node_modules/@types/web/index.d.ts:17384:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'MEDIUM_INT' must be of type 'number', but here has type '36340'.

17384     readonly MEDIUM_INT: 0x8DF4;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16440:14
    16440     readonly MEDIUM_INT: GLenum;
                       ~~~~~~~~~~
    'MEDIUM_INT' was also declared here.

../node_modules/@types/web/index.d.ts:17385:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'HIGH_INT' must be of type 'number', but here has type '36341'.

17385     readonly HIGH_INT: 0x8DF5;
                   ~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16399:14
    16399     readonly HIGH_INT: GLenum;
                       ~~~~~~~~
    'HIGH_INT' was also declared here.

../node_modules/@types/web/index.d.ts:17386:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER' must be of type 'number', but here has type '36160'.

17386     readonly FRAMEBUFFER: 0x8D40;
                   ~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16377:14
    16377     readonly FRAMEBUFFER: GLenum;
                       ~~~~~~~~~~~
    'FRAMEBUFFER' was also declared here.

../node_modules/@types/web/index.d.ts:17387:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER' must be of type 'number', but here has type '36161'.

17387     readonly RENDERBUFFER: 0x8D41;
                   ~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16464:14
    16464     readonly RENDERBUFFER: GLenum;
                       ~~~~~~~~~~~~
    'RENDERBUFFER' was also declared here.

../node_modules/@types/web/index.d.ts:17388:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RGBA4' must be of type 'number', but here has type '32854'.

17388     readonly RGBA4: 0x8056;
                   ~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16482:14
    16482     readonly RGBA4: GLenum;
                       ~~~~~
    'RGBA4' was also declared here.

../node_modules/@types/web/index.d.ts:17389:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RGB5_A1' must be of type 'number', but here has type '32855'.

17389     readonly RGB5_A1: 0x8057;
                   ~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16480:14
    16480     readonly RGB5_A1: GLenum;
                       ~~~~~~~
    'RGB5_A1' was also declared here.

../node_modules/@types/web/index.d.ts:17390:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RGB565' must be of type 'number', but here has type '36194'.

17390     readonly RGB565: 0x8D62;
                   ~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16479:14
    16479     readonly RGB565: GLenum;
                       ~~~~~~
    'RGB565' was also declared here.

../node_modules/@types/web/index.d.ts:17391:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DEPTH_COMPONENT16' must be of type 'number', but here has type '33189'.

17391     readonly DEPTH_COMPONENT16: 0x81A5;
                   ~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16353:14
    16353     readonly DEPTH_COMPONENT16: GLenum;
                       ~~~~~~~~~~~~~~~~~
    'DEPTH_COMPONENT16' was also declared here.

../node_modules/@types/web/index.d.ts:17392:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'STENCIL_INDEX8' must be of type 'number', but here has type '36168'.

17392     readonly STENCIL_INDEX8: 0x8D48;
                   ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16513:14
    16513     readonly STENCIL_INDEX8: GLenum;
                       ~~~~~~~~~~~~~~
    'STENCIL_INDEX8' was also declared here.

../node_modules/@types/web/index.d.ts:17393:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DEPTH_STENCIL' must be of type 'number', but here has type '34041'.

17393     readonly DEPTH_STENCIL: 0x84F9;
                   ~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16356:14
    16356     readonly DEPTH_STENCIL: GLenum;
                       ~~~~~~~~~~~~~
    'DEPTH_STENCIL' was also declared here.

../node_modules/@types/web/index.d.ts:17394:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_WIDTH' must be of type 'number', but here has type '36162'.

17394     readonly RENDERBUFFER_WIDTH: 0x8D42;
                   ~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16474:14
    16474     readonly RENDERBUFFER_WIDTH: GLenum;
                       ~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_WIDTH' was also declared here.

../node_modules/@types/web/index.d.ts:17395:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_HEIGHT' must be of type 'number', but here has type '36163'.

17395     readonly RENDERBUFFER_HEIGHT: 0x8D43;
                   ~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16470:14
    16470     readonly RENDERBUFFER_HEIGHT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_HEIGHT' was also declared here.

../node_modules/@types/web/index.d.ts:17396:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_INTERNAL_FORMAT' must be of type 'number', but here has type '36164'.

17396     readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16471:14
    16471     readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_INTERNAL_FORMAT' was also declared here.

../node_modules/@types/web/index.d.ts:17397:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_RED_SIZE' must be of type 'number', but here has type '36176'.

17397     readonly RENDERBUFFER_RED_SIZE: 0x8D50;
                   ~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16472:14
    16472     readonly RENDERBUFFER_RED_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_RED_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17398:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_GREEN_SIZE' must be of type 'number', but here has type '36177'.

17398     readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16469:14
    16469     readonly RENDERBUFFER_GREEN_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_GREEN_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17399:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_BLUE_SIZE' must be of type 'number', but here has type '36178'.

17399     readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
                   ~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16467:14
    16467     readonly RENDERBUFFER_BLUE_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_BLUE_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17400:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_ALPHA_SIZE' must be of type 'number', but here has type '36179'.

17400     readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16465:14
    16465     readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_ALPHA_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17401:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_DEPTH_SIZE' must be of type 'number', but here has type '36180'.

17401     readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16468:14
    16468     readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_DEPTH_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17402:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_STENCIL_SIZE' must be of type 'number', but here has type '36181'.

17402     readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16473:14
    16473     readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_STENCIL_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17403:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE' must be of type 'number', but here has type '36048'.

17403     readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16379:14
    16379     readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:17404:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_ATTACHMENT_OBJECT_NAME' must be of type 'number', but here has type '36049'.

17404     readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16378:14
    16378     readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_ATTACHMENT_OBJECT_NAME' was also declared here.

../node_modules/@types/web/index.d.ts:17405:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL' must be of type 'number', but here has type '36050'.

17405     readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16381:14
    16381     readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL' was also declared here.

../node_modules/@types/web/index.d.ts:17406:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE' must be of type 'number', but here has type '36051'.

17406     readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16380:14
    16380     readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE' was also declared here.

../node_modules/@types/web/index.d.ts:17407:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'COLOR_ATTACHMENT0' must be of type 'number', but here has type '36064'.

17407     readonly COLOR_ATTACHMENT0: 0x8CE0;
                   ~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16331:14
    16331     readonly COLOR_ATTACHMENT0: GLenum;
                       ~~~~~~~~~~~~~~~~~
    'COLOR_ATTACHMENT0' was also declared here.

../node_modules/@types/web/index.d.ts:17408:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DEPTH_ATTACHMENT' must be of type 'number', but here has type '36096'.

17408     readonly DEPTH_ATTACHMENT: 0x8D00;
                   ~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16348:14
    16348     readonly DEPTH_ATTACHMENT: GLenum;
                       ~~~~~~~~~~~~~~~~
    'DEPTH_ATTACHMENT' was also declared here.

../node_modules/@types/web/index.d.ts:17409:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'STENCIL_ATTACHMENT' must be of type 'number', but here has type '36128'.

17409     readonly STENCIL_ATTACHMENT: 0x8D20;
                   ~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16500:14
    16500     readonly STENCIL_ATTACHMENT: GLenum;
                       ~~~~~~~~~~~~~~~~~~
    'STENCIL_ATTACHMENT' was also declared here.

../node_modules/@types/web/index.d.ts:17410:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DEPTH_STENCIL_ATTACHMENT' must be of type 'number', but here has type '33306'.

17410     readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
                   ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16357:14
    16357     readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~
    'DEPTH_STENCIL_ATTACHMENT' was also declared here.

../node_modules/@types/web/index.d.ts:17411:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'NONE' must be of type 'number', but here has type '0'.

17411     readonly NONE: 0;
                   ~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16447:14
    16447     readonly NONE: GLenum;
                       ~~~~
    'NONE' was also declared here.

../node_modules/@types/web/index.d.ts:17412:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_COMPLETE' must be of type 'number', but here has type '36053'.

17412     readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
                   ~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16383:14
    16383     readonly FRAMEBUFFER_COMPLETE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_COMPLETE' was also declared here.

../node_modules/@types/web/index.d.ts:17413:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_INCOMPLETE_ATTACHMENT' must be of type 'number', but here has type '36054'.

17413     readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16384:14
    16384     readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_INCOMPLETE_ATTACHMENT' was also declared here.

../node_modules/@types/web/index.d.ts:17414:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT' must be of type 'number', but here has type '36055'.

17414     readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16386:14
    16386     readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT' was also declared here.

../node_modules/@types/web/index.d.ts:17415:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_INCOMPLETE_DIMENSIONS' must be of type 'number', but here has type '36057'.

17415     readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16385:14
    16385     readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_INCOMPLETE_DIMENSIONS' was also declared here.

../node_modules/@types/web/index.d.ts:17416:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_UNSUPPORTED' must be of type 'number', but here has type '36061'.

17416     readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16387:14
    16387     readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_UNSUPPORTED' was also declared here.

../node_modules/@types/web/index.d.ts:17417:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FRAMEBUFFER_BINDING' must be of type 'number', but here has type '36006'.

17417     readonly FRAMEBUFFER_BINDING: 0x8CA6;
                   ~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16382:14
    16382     readonly FRAMEBUFFER_BINDING: GLenum;
                       ~~~~~~~~~~~~~~~~~~~
    'FRAMEBUFFER_BINDING' was also declared here.

../node_modules/@types/web/index.d.ts:17418:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'RENDERBUFFER_BINDING' must be of type 'number', but here has type '36007'.

17418     readonly RENDERBUFFER_BINDING: 0x8CA7;
                   ~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16466:14
    16466     readonly RENDERBUFFER_BINDING: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~
    'RENDERBUFFER_BINDING' was also declared here.

../node_modules/@types/web/index.d.ts:17419:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'MAX_RENDERBUFFER_SIZE' must be of type 'number', but here has type '34024'.

17419     readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
                   ~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16431:14
    16431     readonly MAX_RENDERBUFFER_SIZE: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~
    'MAX_RENDERBUFFER_SIZE' was also declared here.

../node_modules/@types/web/index.d.ts:17420:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'INVALID_FRAMEBUFFER_OPERATION' must be of type 'number', but here has type '1286'.

17420     readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16409:14
    16409     readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'INVALID_FRAMEBUFFER_OPERATION' was also declared here.

../node_modules/@types/web/index.d.ts:17421:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNPACK_FLIP_Y_WEBGL' must be of type 'number', but here has type '37440'.

17421     readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
                   ~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16574:14
    16574     readonly UNPACK_FLIP_Y_WEBGL: GLenum;
                       ~~~~~~~~~~~~~~~~~~~
    'UNPACK_FLIP_Y_WEBGL' was also declared here.

../node_modules/@types/web/index.d.ts:17422:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNPACK_PREMULTIPLY_ALPHA_WEBGL' must be of type 'number', but here has type '37441'.

17422     readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16575:14
    16575     readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'UNPACK_PREMULTIPLY_ALPHA_WEBGL' was also declared here.

../node_modules/@types/web/index.d.ts:17423:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'CONTEXT_LOST_WEBGL' must be of type 'number', but here has type '37442'.

17423     readonly CONTEXT_LOST_WEBGL: 0x9242;
                   ~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16339:14
    16339     readonly CONTEXT_LOST_WEBGL: GLenum;
                       ~~~~~~~~~~~~~~~~~~
    'CONTEXT_LOST_WEBGL' was also declared here.

../node_modules/@types/web/index.d.ts:17424:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNPACK_COLORSPACE_CONVERSION_WEBGL' must be of type 'number', but here has type '37443'.

17424     readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16573:14
    16573     readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'UNPACK_COLORSPACE_CONVERSION_WEBGL' was also declared here.

../node_modules/@types/web/index.d.ts:17425:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BROWSER_DEFAULT_WEBGL' must be of type 'number', but here has type '37444'.

17425     readonly BROWSER_DEFAULT_WEBGL: 0x9244;
                   ~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16325:14
    16325     readonly BROWSER_DEFAULT_WEBGL: GLenum;
                       ~~~~~~~~~~~~~~~~~~~~~
    'BROWSER_DEFAULT_WEBGL' was also declared here.

../node_modules/@types/web/index.d.ts:17563:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'CONNECTING' must be of type 'number', but here has type '0'.

17563     readonly CONNECTING: 0;
                   ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16734:14
    16734     readonly CONNECTING: number;
                       ~~~~~~~~~~
    'CONNECTING' was also declared here.

../node_modules/@types/web/index.d.ts:17564:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'OPEN' must be of type 'number', but here has type '1'.

17564     readonly OPEN: 1;
                   ~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16735:14
    16735     readonly OPEN: number;
                       ~~~~
    'OPEN' was also declared here.

../node_modules/@types/web/index.d.ts:17565:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'CLOSING' must be of type 'number', but here has type '2'.

17565     readonly CLOSING: 2;
                   ~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16733:14
    16733     readonly CLOSING: number;
                       ~~~~~~~
    'CLOSING' was also declared here.

../node_modules/@types/web/index.d.ts:17566:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'CLOSED' must be of type 'number', but here has type '3'.

17566     readonly CLOSED: 3;
                   ~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16732:14
    16732     readonly CLOSED: number;
                       ~~~~~~
    'CLOSED' was also declared here.

../node_modules/@types/web/index.d.ts:17573:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'WebSocket' must be of type '{ new (url: string | URL, protocols?: string | string[] | undefined): WebSocket; prototype: WebSocket; readonly CLOSED: number; readonly CLOSING: number; readonly CONNECTING: number; readonly OPEN: number; }', but here has type '{ new (url: string | URL, protocols?: string | string[] | undefined): WebSocket; prototype: WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; }'.

17573 declare var WebSocket: {
                  ~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16742:13
    16742 declare var WebSocket: {
                      ~~~~~~~~~
    'WebSocket' was also declared here.

../node_modules/@types/web/index.d.ts:17588:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DOM_DELTA_PIXEL' must be of type 'number', but here has type '0'.

17588     readonly DOM_DELTA_PIXEL: 0x00;
                   ~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16759:14
    16759     readonly DOM_DELTA_PIXEL: number;
                       ~~~~~~~~~~~~~~~
    'DOM_DELTA_PIXEL' was also declared here.

../node_modules/@types/web/index.d.ts:17589:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DOM_DELTA_LINE' must be of type 'number', but here has type '1'.

17589     readonly DOM_DELTA_LINE: 0x01;
                   ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16757:14
    16757     readonly DOM_DELTA_LINE: number;
                       ~~~~~~~~~~~~~~
    'DOM_DELTA_LINE' was also declared here.

../node_modules/@types/web/index.d.ts:17590:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DOM_DELTA_PAGE' must be of type 'number', but here has type '2'.

17590     readonly DOM_DELTA_PAGE: 0x02;
                   ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16758:14
    16758     readonly DOM_DELTA_PAGE: number;
                       ~~~~~~~~~~~~~~
    'DOM_DELTA_PAGE' was also declared here.

../node_modules/@types/web/index.d.ts:17593:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'WheelEvent' must be of type '{ new (type: string, eventInitDict?: WheelEventInit | undefined): WheelEvent; prototype: WheelEvent; readonly DOM_DELTA_LINE: number; readonly DOM_DELTA_PAGE: number; readonly DOM_DELTA_PIXEL: number; }', but here has type '{ new (type: string, eventInitDict?: WheelEventInit | undefined): WheelEvent; prototype: WheelEvent; readonly DOM_DELTA_PIXEL: 0; readonly DOM_DELTA_LINE: 1; readonly DOM_DELTA_PAGE: 2; }'.

17593 declare var WheelEvent: {
                  ~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:16762:13
    16762 declare var WheelEvent: {
                      ~~~~~~~~~~
    'WheelEvent' was also declared here.

../node_modules/@types/web/index.d.ts:17729:5 - error TS2374: Duplicate index signature for type 'number'.

17729     [index: number]: Window;
          ~~~~~~~~~~~~~~~~~~~~~~~~

../node_modules/@types/web/index.d.ts:17996:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNSENT' must be of type 'number', but here has type '0'.

17996     readonly UNSENT: 0;
                   ~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17169:14
    17169     readonly UNSENT: number;
                       ~~~~~~
    'UNSENT' was also declared here.

../node_modules/@types/web/index.d.ts:17997:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'OPENED' must be of type 'number', but here has type '1'.

17997     readonly OPENED: 1;
                   ~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17168:14
    17168     readonly OPENED: number;
                       ~~~~~~
    'OPENED' was also declared here.

../node_modules/@types/web/index.d.ts:17998:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'HEADERS_RECEIVED' must be of type 'number', but here has type '2'.

17998     readonly HEADERS_RECEIVED: 2;
                   ~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17166:14
    17166     readonly HEADERS_RECEIVED: number;
                       ~~~~~~~~~~~~~~~~
    'HEADERS_RECEIVED' was also declared here.

../node_modules/@types/web/index.d.ts:17999:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'LOADING' must be of type 'number', but here has type '3'.

17999     readonly LOADING: 3;
                   ~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17167:14
    17167     readonly LOADING: number;
                       ~~~~~~~
    'LOADING' was also declared here.

../node_modules/@types/web/index.d.ts:18000:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'DONE' must be of type 'number', but here has type '4'.

18000     readonly DONE: 4;
                   ~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17165:14
    17165     readonly DONE: number;
                       ~~~~
    'DONE' was also declared here.

../node_modules/@types/web/index.d.ts:18007:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'XMLHttpRequest' must be of type '{ new (): XMLHttpRequest; prototype: XMLHttpRequest; readonly DONE: number; readonly HEADERS_RECEIVED: number; readonly LOADING: number; readonly OPENED: number; readonly UNSENT: number; }', but here has type '{ new (): XMLHttpRequest; prototype: XMLHttpRequest; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; }'.

18007 declare var XMLHttpRequest: {
                  ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17176:13
    17176 declare var XMLHttpRequest: {
                      ~~~~~~~~~~~~~~
    'XMLHttpRequest' was also declared here.

../node_modules/@types/web/index.d.ts:18104:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'ANY_TYPE' must be of type 'number', but here has type '0'.

18104     readonly ANY_TYPE: 0;
                   ~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17273:14
    17273     readonly ANY_TYPE: number;
                       ~~~~~~~~
    'ANY_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18105:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'NUMBER_TYPE' must be of type 'number', but here has type '1'.

18105     readonly NUMBER_TYPE: 1;
                   ~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17277:14
    17277     readonly NUMBER_TYPE: number;
                       ~~~~~~~~~~~
    'NUMBER_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18106:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'STRING_TYPE' must be of type 'number', but here has type '2'.

18106     readonly STRING_TYPE: 2;
                   ~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17280:14
    17280     readonly STRING_TYPE: number;
                       ~~~~~~~~~~~
    'STRING_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18107:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'BOOLEAN_TYPE' must be of type 'number', but here has type '3'.

18107     readonly BOOLEAN_TYPE: 3;
                   ~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17275:14
    17275     readonly BOOLEAN_TYPE: number;
                       ~~~~~~~~~~~~
    'BOOLEAN_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18108:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNORDERED_NODE_ITERATOR_TYPE' must be of type 'number', but here has type '4'.

18108     readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17281:14
    17281     readonly UNORDERED_NODE_ITERATOR_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'UNORDERED_NODE_ITERATOR_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18109:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'ORDERED_NODE_ITERATOR_TYPE' must be of type 'number', but here has type '5'.

18109     readonly ORDERED_NODE_ITERATOR_TYPE: 5;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17278:14
    17278     readonly ORDERED_NODE_ITERATOR_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ORDERED_NODE_ITERATOR_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18110:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'UNORDERED_NODE_SNAPSHOT_TYPE' must be of type 'number', but here has type '6'.

18110     readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17282:14
    17282     readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'UNORDERED_NODE_SNAPSHOT_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18111:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'ORDERED_NODE_SNAPSHOT_TYPE' must be of type 'number', but here has type '7'.

18111     readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17279:14
    17279     readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ORDERED_NODE_SNAPSHOT_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18112:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'ANY_UNORDERED_NODE_TYPE' must be of type 'number', but here has type '8'.

18112     readonly ANY_UNORDERED_NODE_TYPE: 8;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17274:14
    17274     readonly ANY_UNORDERED_NODE_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'ANY_UNORDERED_NODE_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18113:14 - error TS2717: Subsequent property declarations must have the same type.  Property 'FIRST_ORDERED_NODE_TYPE' must be of type 'number', but here has type '9'.

18113     readonly FIRST_ORDERED_NODE_TYPE: 9;
                   ~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17276:14
    17276     readonly FIRST_ORDERED_NODE_TYPE: number;
                       ~~~~~~~~~~~~~~~~~~~~~~~
    'FIRST_ORDERED_NODE_TYPE' was also declared here.

../node_modules/@types/web/index.d.ts:18116:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'XPathResult' must be of type '{ new (): XPathResult; prototype: XPathResult; readonly ANY_TYPE: number; readonly ANY_UNORDERED_NODE_TYPE: number; readonly BOOLEAN_TYPE: number; readonly FIRST_ORDERED_NODE_TYPE: number; ... 5 more ...; readonly UNORDERED_NODE_SNAPSHOT_TYPE: number; }', but here has type '{ new (): XPathResult; prototype: XPathResult; readonly ANY_TYPE: 0; readonly NUMBER_TYPE: 1; readonly STRING_TYPE: 2; readonly BOOLEAN_TYPE: 3; readonly UNORDERED_NODE_ITERATOR_TYPE: 4; ... 4 more ...; readonly FIRST_ORDERED_NODE_TYPE: 9; }'.

18116 declare var XPathResult: {
                  ~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:17285:13
    17285 declare var XPathResult: {
                      ~~~~~~~~~~~
    'XPathResult' was also declared here.


Found 1053 errors in 2 files.

Errors  Files
    51  node_modules/typescript/lib/lib.dom.d.ts:25
  1002  ../node_modules/@types/web/index.d.ts:7

Error: functions predeploy error: Command terminated with non-zero exit code 2

Environment

- **OS**: darvin arm64
- **Language version**: Typescript 5.2.2
- **Node version**: v18.17.1
- **Angular version**: 16.1.8
- **NPM version**: 9.6.7
- **Pinecone client version**: 1

Additional Context

No response

@zmiju zmiju added the bug Something isn't working label Sep 10, 2023
@jhamon
Copy link
Collaborator

jhamon commented Sep 11, 2023

Sorry for the lousy upgrade experience. We have some other type-related issues we are investigating and we'll see what we can do to straighten this out soon.

jhamon added a commit that referenced this issue Sep 14, 2023
## Problem

Several users have reported issues with typescript compilation

This PR addresses:
- #102
- #105 

## Solution

### Clean up unused dependencies to resolve web-related type errors

I started by deleting dependencies and running tests to see what
dependencies were no longer in use. I was able to delete these:
- @types/web
- @jest/globals
- unique-names-generator

Removing `@types/web` seems to have resolved the majority of Typescript
issues related to conflicts with web types in `lib.dom.d.ts`. Since I
was already in there mucking with dependencies, I went ahead and
shuffled a few things between dependencies/devDependencies just to align
with my current understanding of things.

### TS1005 (Typescript versions <=4.4)

People on older typescript versions report seeing many errors like this:

```
Error: ../pinecone-ts-client/dist/control/index.d.ts(1,31): error TS1005: ',' expected.
```

These errors were caused by using import statements that combined type
and value imports onto one line. This syntax was evidently not supported
in versions of typescript prior to 4.4.

Resolving these issues involved refactoring about 30 import statements
along these lines:
```diff
-import { IndexNameSchema, type IndexName } from './types';
+import { IndexNameSchema } from './types';
+import type { IndexName } from './types';
```

### Typebox errors (Typescript >= 5.1)

The `@sinclair/typebox` dependency is causing issues with very recent
versions of typescript.

```
../node_modules/@sinclair/typebox/typebox.d.ts:179:167 - error TS2589: Type instantiation is excessively deep and possibly infinite.

179 ] extends [TArray, TNumber] ? AssertType<T['items']> : K extends TTemplateLiteral ? TIndexReduce<T, TTemplateLiteralKeyRest<K>> : K extends TUnion<TLiteral<Key>[]> ? TIndexReduce<T, TUnionLiteralKeyRest<K>> : K extends TLiteral<Key> ? TIndexReduce<T, [K['const']]> : TNever;
```

### New CI job: `typescript-compilation-tests`

To verify this compilation issue doesn't come up again, I added a new
github actions job along with a version matrix. It tests every major
version of typescript back to version 4.1 (released [fall
2020](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/))
along with a version of pinecone, then checks whether it can
successfully `tsc`. I ran these with the v1.0.0 pinecone release to see
the jobs fail as reported, then updated it to install the latest code in
this branch and saw them pass. This will be part of CI for every PR from
now on.

## Type of Change

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] This change requires a documentation update
- [x] Infrastructure change (CI configs, etc)

## Test Plan

Should see new compilation tests passing in CI. There are now 13
different checks running in CI to exercise compilation with major
versions of TypeScript.

## Follow-up

Probably we should add a lint rule to prevent us adding back any mixed
type/value imports.
@jhamon
Copy link
Collaborator

jhamon commented Sep 14, 2023

The 1.0.1 release is out and contains a bunch of fixes on the TypeScript front. Release notes here. Please try it out and let me know if you're still having problems.

@jhamon jhamon changed the title [Bug] <title>problem after upgrading pinecone client to new version in angular project [Bug] Typescript compilation problems while upgrading pinecone client in angular project Sep 15, 2023
@zmiju
Copy link
Author

zmiju commented Sep 16, 2023 via email

@jhamon jhamon closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants