Skip to content

Statamic v5.x CP console error - announcements widget #5

Description

@ecomunicare

Hi, we found a little issue when using the CP announcements widget with Statamic v5.x.

A JavaScript error appears in the Control Panel that is related to the Statamic Eyris add-on (thoughtco/statamic-eyris).
Error: Uncaught TypeError: W is not a function in cp-3pD0wAnH.js (Eyris CP bundle).

Possible cause: Eyris includes vue3-carousel, designed for Vue 3, but the Statamic 5 CP still uses Vue 2. When the script starts, the bundle looks for defineComponent on window.Vue, which does not exist in Vue 2, and the CP encounters an error.

Furthermore, the Eyris ad widget already requires Statamic 6; on v5 it only displays an incompatibility message, but the carousel’s JS is still loaded and breaks the CP.

Image

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