Skip to content

[PageContent] eui.d.ts imports from 'enzyme' #6642

Closed

Description

@j-m

Hey folks! Not sure how/why but enzyme has made it into eui.d.ts (it's only listed in your devDependencies so it's causing me a few issues). This is the only place enzyme is imported so I'm guessing HTMLAttributes should've been imported from react? Cheers

image

Activity

  1. cee-chen commented on Mar 14, 2023

    @cee-chen
    Contributor

    Awesome catch, thank you so much @j-m! I'll look into this and push a fix with a release today.

  2. cee-chen commented on Mar 14, 2023

    @cee-chen
    Contributor

    Looks like this is the culprit:

    import { HTMLAttributes } from 'enzyme';

    23 months ago, oof. We seriously appreciate your eagle eye on this!

    EDIT: whoops, just saw you already found the problem file in your issue and screenshot 🙈 Sorry, operating on too little sleep today!

  3. j-m commented on Mar 16, 2023

    @j-m
    ContributorAuthor

    I had only recently upgraded from v36 😅
    TSC can catch this problem for you via skipLibCheck: false

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

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