Skip to content

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

Closed
@Emanuele-Fortunati

Description

@Emanuele-Fortunati

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

Metadata

Metadata

Assignees

Labels

ai/corebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions