Missing Typescript declaration file from latest version

timwiffen
timwiffen Member Posts: 1

Hi, when installing the latest solclientjs package (10.12.0) via npm/yarn, there is no index.d.ts file in the package root. This results in Typescript complaining about a missing declaration.

I have had to downgrade to 10.11.0.

Comments

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 959 admin

    Thanks for the heads up @timwiffen. I'm pinging the team to take a look.

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 959 admin

    Hi @timwiffen,

    Here's an update:

    You are running into a known bug that was identified for v10.12.0 which will be fixed in v10.13.0where the package.json file was referencing a non-existent index.d.ts in the root directory.

    This bug is already in work by our engineering team and we are expecting release of `v10.13.0` by the end of the month. In the mean time you can either use `v10.11.0` as you are doing or you can use `v10.12.0` and set paths in the tsconfig.json file to point to an existing index.d.ts in the lib.

    "paths": {
          "solclientjs": [
            "../path/to/module/solclient-full",
            "../path/to/module/type-definition/index.d.ts",
          ]
        },
    
    

    Hope that helps!