Skip to content

dependencies trouble #8531

Closed as duplicate
Closed as duplicate

Description

@tomitank

I found least one bad dependencie, but maybe has more..
"@elastic/eui-theme-common": "0.0.9"

and eui-theme-borealis not has _animation.scss inside /src/variables dir after install

Activity

  1. added
    ⚠️ needs validation
    on Apr 2, 2025
  2. added theissue type on Apr 2, 2025
  3. tkajtoch commented on Apr 3, 2025

    @tkajtoch
    Contributor

    Hi @tomitank! Could you please use the regular bug report template for your issue? We can't easily triage this or help you if we don't know the EUI version. Thanks!

  4. tkajtoch commented on Apr 3, 2025

    @tkajtoch
    Contributor

    Generally speaking, unless you're using a deprecated version of @elastic/eui the version of @elastic/eui-theme-common should be correct in package.json.

    As for the _animation.scss, you're right that it's not exported from @elastic/eui-theme-borealis. Animations got moved to the common package but you can still import them from @elastic/eui/src/global_styling/variables/_animations.scss if you really need them. Having said that I want to highlight that we're deprecating SCSS utilities in EUI and likely will remove these files in 3-6 months. If you're still using SCSS we recommend migrating to Emotion.

  5. added and removed
    ⚠️ needs validation
    on Apr 3, 2025
  6. removed theissue type on Apr 3, 2025
  7. tomitank commented on Apr 4, 2025

    @tomitank
    Author

    hi @tkajtoch,
    earlier i always installed eui with next dependecies and don't have issue:

        "@elastic/datemath": "^5.0.3",
        "@elastic/eui": "^99.4.0",
        "@emotion/react": "^11.14.0",
    

    But now the /eui install the @elastic/eui-theme-borealis and @elastic/eui-theme-borealis has dependenci for @elastic/eui-theme-common:
    "@elastic/eui-theme-common": "0.0.9"
    dev dependencies is ok, but peerDependencies not, and for me always installed 0.0.9 (npm and yarn too)
    When i add @elastic/eui-theme-common to my package.json, than it solved the above problem. but it still wrong:

    "@elastic/eui-theme-common": "0.0.9"

    1. when i good remember, i don't use scss inside my code, but i has warnings after install the new version of eui inside my terminal.
      _animation.scss was only 1 error, but i had least 10 same error
      when you see the last @elastic/eui-theme-borealis npm package, then you can see that the version is same like the github 0.1.0, but the code is different. I think the npm package has not been updated.
  8. tkajtoch commented on Apr 7, 2025

    @tkajtoch
    Contributor

    Hi @tomitank, that clarifies a lot, thanks!

    Could you please upgrade to the latest @elastic/eui and @elastic/eui-theme-borealis? This will ensure all dependency versions are correct and matching. You don't need @elastic/eui-theme-common added as a dependency in your projects - the warning can be disregarded for the time being.

    It looks like we've forgotten to remove @elastic/eui-theme-common from peerDependencies of @elastic/eui-theme-borealis.

  9. tkajtoch commented on Apr 16, 2025

    @tkajtoch
    Contributor

    The package.json update is tracked by #8599. I'm going to close this issue in favor of that one. I'll try to get to it this week, so the next EUI release will have @elastic/eui-theme-common removed from peerDependencies.

    If you have any further questions please open a new issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions