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

Property '_internal' does not exist on type... #4686

Open
Emanuele-Fortunati opened this issue Feb 4, 2025 · 3 comments
Open

Property '_internal' does not exist on type... #4686

Emanuele-Fortunati opened this issue Feb 4, 2025 · 3 comments
Assignees
Labels
ai/core bug Something isn't working

Comments

@Emanuele-Fortunati
Copy link

Emanuele-Fortunati commented Feb 4, 2025

Description

ai: 4.1.17
typescript: 5.7.3
tsconfig.json:

{
  "compilerOptions": {
    "outDir": "./dist",
    "module": "CommonJS",
    "target": "ES2022",
    "strict": true,
    "sourceMap": false,
    "allowJs": true,
    "esModuleInterop": true
  },
  "include": ["**/*.ts"],
  "exclude": ["node_modules", "dist", "index.old.ts"]
}

If I try to compile with tsc, I get lot of the following errors:

Property '_internal' does not exist on type '{ chunks: T[]; initialDelayInMs?: number; chunkDelayInMs?: number; }'

Any idea why?

Code example

import { CoreMessage, generateText } from 'ai';

let { text } = await generateText({
    model: openai(configuration.openAI.model),
    messages,
    temperature: 0.2,
});

AI provider

No response

Additional context

No response

@Emanuele-Fortunati Emanuele-Fortunati added the bug Something isn't working label Feb 4, 2025
@shaper shaper self-assigned this Feb 4, 2025
@shaper
Copy link
Contributor

shaper commented Feb 4, 2025

Thank you for reporting -- we are looking at a potential revert of #4561 to resolve this shortly.

@shaper
Copy link
Contributor

shaper commented Feb 4, 2025

@Emanuele-Fortunati are you perhaps able to put up a small example repo? It would be helpful for us to be able to reproduce the failure, so that if we look to reland an updated version of the change we can avoid breaking you or others again.

I tried updating a small nextjs app to ai 4.1.17 and it builds with typescript 5.7.3 although admittedly a slightly different tsconfig.

Apologies for the hassle, we are looking to revert in the meantime in any case.

@Emanuele-Fortunati
Copy link
Author

@Emanuele-Fortunati are you perhaps able to put up a small example repo? It would be helpful for us to be able to reproduce the failure, so that if we look to reland an updated version of the change we can avoid breaking you or others again.

I tried updating a small nextjs app to ai 4.1.17 and it builds with typescript 5.7.3 although admittedly a slightly different tsconfig.

Apologies for the hassle, we are looking to revert in the meantime in any case.

Hello, thanks for the support.
I'm travelling this week so it's a bit hard to put up a small repo, I'll do next week for sure.
(unfortunately I cannot share the full code as it belongs to a client of mine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/core bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants