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

Module '"@scaleway/sdk"' has no exported member 'Registry' #1474

Open
empz opened this issue Oct 8, 2024 · 3 comments · May be fixed by #1667
Open

Module '"@scaleway/sdk"' has no exported member 'Registry' #1474

empz opened this issue Oct 8, 2024 · 3 comments · May be fixed by #1667
Assignees
Labels
bug Something isn't working priority:highest Bugs filled by customers, security issues

Comments

@empz
Copy link

empz commented Oct 8, 2024

"version": "2.49.1"

@empz
Copy link
Author

empz commented Oct 8, 2024

This hasn't been working for the past 7 months. Latest version that exports Registry is 2.21.1.

How did nobody noticed this in 7 months....???

@Codelax
Copy link
Member

Codelax commented Oct 17, 2024

Hi, I tried the simple example found in the README that imports Registry.
I don't have any issue with 2.49.1 or latest version.

@Codelax
Copy link
Member

Codelax commented Oct 29, 2024

This issue happens when using "moduleResolution": "nodenext.
This can be reproduced in examples/nodejs-minimal using this patch:

diff --git a/examples/nodejs-minimal/tsconfig.json b/examples/nodejs-minimal/tsconfig.json
index 0b8c63e..6a9e595 100644
--- a/examples/nodejs-minimal/tsconfig.json
+++ b/examples/nodejs-minimal/tsconfig.json
@@ -1,7 +1,7 @@
 {
   "compilerOptions": {
-    "module": "ESNext",
-    "moduleResolution": "Bundler",
+    "module": "nodenext",
+    "moduleResolution": "nodenext",
     "target": "ES2022",
     "outDir": "./dist",
     "strict": true,

This generate errors for multiple d.ts files:

node_modules/@scaleway/sdk/dist/index.d.ts:16:15 - error TS2834: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.

16 export * from './api';
                 ~~~~~~~

Generated *.d.ts files miss files extensions when importing.

@Codelax Codelax added bug Something isn't working priority:highest Bugs filled by customers, security issues labels Oct 29, 2024
@jremy42 jremy42 linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:highest Bugs filled by customers, security issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants