Skip to content

Incompatible with @ngx-translate/core v18 — TranslateModule import fails the build #735

Description

@artaommahe

stream-chat-angular cannot be used with @ngx-translate/core v18. The peer dependency is still pinned to ^17.0.0, and the library imports TranslateModule, which v18 removed. Building an app on ngx-translate v18 fails at bundling.

Build error

✘ [ERROR] No matching export in
"node_modules/@ngx-translate/core/fesm2022/ngx-translate-core.mjs" for import "TranslateModule"

node_modules/stream-chat-angular/fesm2022/stream-chat-angular.mjs:8:9:
  8 │ import { TranslateModule } from '@ngx-translate/core';

Root cause

ngx-translate v18 removed the TranslateModule NgModule. The pipe and directive are now standalone and exported directly as TranslatePipe and TranslateDirective (see the v18 release notes / migration guide).

Version

  • stream-chat-angular: 7.1.5
  • @ngx-translate/core: 18.0.0
  • @angular/core: 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions