Skip to content

Vue 3 example doesn't work: _a2.getBoundingClientRect is not a function #486

@lakeeast

Description

@lakeeast

Describe the bug
When creating the simplest example based on official documentation with Vue 3, the UI will not render. The following error will show up:
Screenshot 2024-05-12 at 3 25 20 PM

To Reproduce
Steps to reproduce the behavior:

  1. npm create vite@latest
  2. Select Vue 3 with typescript
  3. Copy paste sample code in https://github.com/Leecason/element-tiptap
  4. See error

Expected behavior
It should render the text (but nothing showed up)

Screenshots
See attached

Desktop (please complete the following information):

  • OS: Mac Pro
  • Browser Chrome
  • Version: latest

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions