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

Latest release version v0.1.8-alpha.1 is NOT BUILDING #2963

Open
bucurdavid opened this issue Jan 29, 2025 · 10 comments
Open

Latest release version v0.1.8-alpha.1 is NOT BUILDING #2963

bucurdavid opened this issue Jan 29, 2025 · 10 comments
Labels
bug Something isn't working no-issue-activity

Comments

@bucurdavid
Copy link

bucurdavid commented Jan 29, 2025

Describe the bug

Trying to use the latest released version #v0.1.8-alpha.1 and it's failing to build.

To Reproduce

nvm use 23.3.0
pnpm clean
pnpm cache delete
pnpm install -r --no-frozen-lockfile / pnpm install --no-frozen-lockfile
pnpm build

Expected behavior

Additional context

@elizaos/core:build: src/generation.ts(535,21): error TS2322: Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1'.
@elizaos/core:build:   The types returned by 'doStream(...)' are incompatible between these types.
@elizaos/core:build:     Type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_...' is not assignable to type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/p...'.
@elizaos/core:build:       Type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-...' is not assignable to type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist...'.
@elizaos/core:build:         Types of property 'stream' are incompatible.
@elizaos/core:build:           Type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>' is not assignable to type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>'.
@elizaos/core:build:             Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart'.
@elizaos/core:build:               Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type 'LanguageModelV1StreamPart'.
@elizaos/core:build:                 Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type '{ type: "text-delta"; textDelta: string; }'.
@elizaos/core:build:                   Types of property 'type' are incompatible.
@elizaos/core:build:                     Type '"reasoning"' is not assignable to type '"text-delta"'.
@elizaos/core:build: src/generation.ts(2094,9): error TS2769: No overload matches this call.
@elizaos/core:build:   The last overload gave the following error.
@elizaos/core:build:     Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1'.
@elizaos/core:build:       The types returned by 'doStream(...)' are incompatible between these types.
@elizaos/core:build:         Type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_...' is not assignable to type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/p...'.
@elizaos/core:build:           Type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-...' is not assignable to type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist...'.
@elizaos/core:build:             Types of property 'stream' are incompatible.
@elizaos/core:build:               Type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>' is not assignable to type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>'.
@elizaos/core:build:                 Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart'.
@elizaos/core:build:                   Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type 'LanguageModelV1StreamPart'.
@elizaos/core:build:                     Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type '{ type: "text-delta"; textDelta: string; }'.
@elizaos/core:build:                       Types of property 'type' are incompatible.
@elizaos/core:build:                         Type '"reasoning"' is not assignable to type '"text-delta"'.
@elizaos/core:build:                           Type '"auto" | "json" | "tool"' is not assignable to type '"json"'.
@elizaos/core:build:                             Type '"auto"' is not assignable to type '"json"'.
@elizaos/core:build: src/generation.ts(2098,9): error TS2769: No overload matches this call.
@elizaos/core:build:   The last overload gave the following error.
@elizaos/core:build:     Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1'.
@elizaos/core:build:       The types returned by 'doStream(...)' are incompatible between these types.
@elizaos/core:build:         Type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_...' is not assignable to type 'PromiseLike<{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/p...'.
@elizaos/core:build:           Type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { ...; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-...' is not assignable to type '{ stream: ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>; rawCall: { rawPrompt: unknown; rawSettings: Record<...>; }; rawResponse?: { ...; }; request?: { ...; }; warnings?: import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist...'.
@elizaos/core:build:             Types of property 'stream' are incompatible.
@elizaos/core:build:               Type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>' is not assignable to type 'ReadableStream<import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart>'.
@elizaos/core:build:                 Type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/mistral/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart' is not assignable to type 'import("/Users/bucurdavid/dev/eliza/node_modules/@ai-sdk/provider/dist/index").LanguageModelV1StreamPart'.
@elizaos/core:build:                   Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type 'LanguageModelV1StreamPart'.
@elizaos/core:build:                     Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type '{ type: "text-delta"; textDelta: string; }'.
@elizaos/core:build:                       Types of property 'type' are incompatible.
@elizaos/core:build:                         Type '"reasoning"' is not assignable to type '"text-delta"'.
@elizaos/core:build:                           Type '"auto" | "json" | "tool"' is not assignable to type '"json"'.
@elizaos/core:build:                             Type '"auto"' is not assignable to type '"json"'.
@elizaos/core:build: 
@elizaos/core:build: Error: error occurred in dts build
@bucurdavid bucurdavid added the bug Something isn't working label Jan 29, 2025
Copy link
Contributor

Hello @bucurdavid! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@bucurdavid bucurdavid changed the title Latest release version is NOT BUILDING Latest release version v0.1.8-alpha.1 is NOT BUILDING Jan 29, 2025
@olegshilov
Copy link

Image Image

same issue.
looks like npm packages, doesn't include any source at all

@WhaSukGO
Copy link

Which version or commit ID should I roll back to? ...

@WhaSukGO
Copy link

$ git checkout cbb95e7ed1b9571806e06865e2c96c02a40d4907

FYI, this one builds succesfully

@JoelAlexander
Copy link

@WhaSukGO

cbb95e7 is not a commit in elizaOS/eliza. How are you getting a successful build?

@WhaSukGO
Copy link

@JoelAlexander

# On the main branch
$ git checkout cbb95e7ed1b9571806e06865e2c96c02a40d4907

@steflsd
Copy link

steflsd commented Jan 30, 2025

Can confirm, the v0.1.8-alpha.1 was built incorrectly (somehow)

Pulled npm tar and extracted it and it only has
x package/LICENSE
x package/package.json

Related
elizaOS/eliza-starter#113

@cre8tions
Copy link

same issue here as well, building v0.8.1

aaron-adimverse added a commit to adimverse/atlas that referenced this issue Jan 30, 2025
The build started breaking for base v0.1.8-alpha.1 because of this issue:
elizaOS/eliza#2963

We aren't using mistral, so fuck it, we'll do it live!
@jhheider
Copy link

d577fda seems to fix the build for me (patched over v0.1.8+build.1).

Copy link
Contributor

github-actions bot commented Mar 2, 2025

This issue has been automatically marked as stale due to 30 days of inactivity.
If no further activity occurs within 7 days, it will be closed automatically. Please take action if this issue is still relevant.

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

No branches or pull requests

7 participants