Skip to content

Commit 08bed53

Browse files
committed
chore: fix exemple nodejs-minimal
1 parent ab7dde5 commit 08bed53

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/nodejs-minimal/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"dependencies": {
1212
"@scaleway/configuration-loader": "^1.0",
13-
"@scaleway/sdk": "^2.0"
13+
"@scaleway/sdk": "^2.0",
14+
"@scaleway/sdk-client": "^2.0"
1415
},
1516
"devDependencies": {
1617
"@types/node": "20.17.46",

examples/nodejs-minimal/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// Correct imports for Scaleway SDK v2.27.0+
12
import * as http from 'http'
23
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
3-
import { Registry, createClient } from '@scaleway/sdk'
4+
import { Registry } from '@scaleway/sdk'
5+
import { createClient } from '@scaleway/sdk-client'
46

57
const hostname = '127.0.0.1'
68
const port = 3000

examples/nodejs-minimal/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"module": "ESNext",
4-
"moduleResolution": "Bundler",
3+
"module": "NodeNext",
4+
"moduleResolution": "NodeNext",
55
"target": "ES2022",
66
"outDir": "./dist",
77
"strict": true,

0 commit comments

Comments
 (0)