Skip to content

Bug(scope): Module '@messageformat/core' used by '..../jsverse-transloco-messageformat.mjs' is not ESM  #789

@TheGameKnave

Description

@TheGameKnave

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) are the source of the bug?

MessageFormat

Is this a regression?

No

Current behavior

Building an angular 18 app with Transloco and MessageFormat results in the following warning:

WARNING] Module '@messageformat/core' used by '../node_modules/@jsverse/transloco-messageformat/fesm2022/jsverse-transloco-messageformat.mjs' is not ESM

  CommonJS or AMD dependencies can cause optimization bailouts.

Expected behavior

Build without warnings

Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.

messageformat/messageformat#405

Transloco Config

No response

Please provide the environment you discovered this bug in

Transloco: 7.4.3
"@jsverse/transloco-messageformat": "^7.0.1",
Angular: 18.1.3
Node: 20.16.0
Package Manager: npm 10.8.1
OS: Ventura

Browser

No response

Additional context

No response

I would like to make a pull request for this bug

No

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