Skip to content

EuiColorPicker does not work #7982

Closed as not planned
Closed as not planned

Description

@Astx1999

Describe the bug
EuiColorPicker is not working it is returning the following error

Error: Module not found in bundle: ./assets/swatch_input
    at http://localhost:3000/node_modules/.vite/deps/chunk-TEVNPHX6.js?v=d0051258:27:9
    at EuiIconClass2.loadIconComponent (http://localhost:3000/node_modules/.vite/deps/chunk-VBKHYUX4.js?v=d0051258:2024:7)
    at EuiIconClass2.componentDidMount (http://localhost:3000/node_modules/.vite/deps/chunk-VBKHYUX4.js?v=d0051258:2065:14)
    at commitLayoutEffectOnFiber (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:23908:36)
    at commitLayoutMountEffects_complete (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:24858:17)
    at commitLayoutEffects_begin (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:24847:15)
    at commitLayoutEffects_begin (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:24828:19)
    at commitLayoutEffects (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:24798:11)
    at commitRootImpl (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:26231:13)
    at commitRoot (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:26155:13)
    at performSyncWorkOnRoot (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:25773:11)
    at flushSyncCallbacks (http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:15997:30)
    at http://localhost:3000/node_modules/.vite/deps/chunk-5YPOADNG.js?v=d0051258:25505:21

Image

Activity

  1. added
    ⚠️ needs validation
    on Aug 26, 2024
  2. cee-chen commented on Aug 26, 2024

    @cee-chen
    Contributor

    This is not an issue with EuiColorPicker specifically - it's that Vite does not support EuiIcon and EUI does not officially support Vite as a build pipeline. Please see #5463 for potential workarounds.

  3. added
    answered
    and removed
    ⚠️ needs validation
    on Aug 26, 2024
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

    answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions