Skip to content

bug(ai): Typescript compilation errors in [email protected] #9231

@anisabboud

Description

@anisabboud

Operating System

Linux

Environment (if applicable)

Typescript

Firebase SDK Version

12.2.0

Firebase SDK Product(s)

AI

Project Tooling

Angular + Firebase

Detailed Problem Description

Image

Steps and code to reproduce issue

v12.1.0 compiles fine.
v12.2.0 produces compilation errors:

✘ [ERROR] TS2304: Cannot find name '_FirebaseService'. [plugin angular-compiler]

    node_modules/@firebase/ai/dist/ai-public.d.ts:150:39:
      150 │ declare class AIService implements AI, _FirebaseService {
          ╵                                        ~~~~~~~~~~~~~~~~


✘ [ERROR] TS2304: Cannot find name 'LanguageModel'. [plugin angular-compiler]

    node_modules/@firebase/ai/dist/ai-public.d.ts:394:27:
      394 │     languageModelProvider: LanguageModel;
          ╵                            ~~~~~~~~~~~~~


✘ [ERROR] TS2304: Cannot find name 'LanguageModel'. [plugin angular-compiler]

    node_modules/@firebase/ai/dist/ai-public.d.ts:401:39:
      401 │ ...r(languageModelProvider: LanguageModel, mode: InferenceMode, o...
          ╵                             ~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions