Skip to content

Typescript: Module '"@scaleway/sdk"' has no exported member 'Registry'. #2007

Open
@GeoffreyHervet

Description

@GeoffreyHervet

Hello,

I'm trying to use the SDK (I tried with version 2.72.0 & 2.73.0), I always have the following issue:
Module '"@scaleway/sdk"' has no exported member 'Registry'.

In my package.json: "@scaleway/sdk": "2.73.0", typescript version: 5.7.3.

tsconfig:

{
  "extends": "@tsconfig/node22/tsconfig.json",
  "compilerOptions": {
    "sourceMap": true,
    "rootDir": "src",
    "outDir": "build",
    "strictPropertyInitialization": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "module": "NodeNext",
    "moduleResolution": "NodeNext"
  }
}

Code to reproduce:

import { Registry, Client, createClient } from '@scaleway/sdk';

export default class Scaleway {
  private client: Client;
  private api: Registry.v1.API;

  public constructor(private readonly env: Env) {
    this.client = createClient({
    });
    this.api = new Registry.v1.API(this.client);
  }
}

Best,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions