Skip to content

[v5] Could not find a declaration file for module './shims/file.node.mjs'. #1379

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

Open
1 task done
deyaaeldeen opened this issue Mar 14, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@deyaaeldeen
Copy link
Contributor

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

node_modules/openai/internal/to-file.d.mts:1:22 - error TS7016: Could not find a declaration file for module './shims/file.node.mjs'. 'node_modules/openai/internal/shims/file.node.mjs' implicitly has an 'any' type.

1 import { File } from "./shims/file.node.mjs";

Image

To Reproduce

  1. Go to https://stackblitz.com/edit/stackblitz-starters-wj7xcuqt?file=node_modules%2Fopenai%2Finternal%2Fto-file.d.mts
  2. Navigate to node_modules/openai/internal/to-file.d.mts

Code snippets

OS

Any

Node version

Any

Library version

openai v5.0.0-beta.0

@deyaaeldeen deyaaeldeen added the bug Something isn't working label Mar 14, 2025
@RobertCraigie
Copy link
Collaborator

Thanks for the report! Looking into this

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