Skip to content

defineAsyncComponent custom element emit not firing #7293

@SavkaTaras

Description

@SavkaTaras

Vue version

3.2.45

Link to minimal reproduction

https://github.com/funkso2010/vue3-cus-el-emit

Steps to reproduce

Pull project locally.
npm install (this installs the latest vue version)
npm run preview

What is expected?

dist/index.html
for both buttons to trigger console.log()

What is actually happening?

A button that uses defineAsyncComponent is not firing console.log()

System Info

System:
    OS: macOS 12.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 1.05 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.20.0 - /usr/local/bin/node
    Yarn: 1.22.17 - ~/.npm-global/bin/yarn
    npm: 6.14.17 - /usr/local/bin/npm
  Browsers:
    Chrome: 108.0.5359.94
    Safari: 16.1

Any additional comments?

This is intended for breaking large library into small files, instead of loading one giant file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: custom elements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions