Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

element-tiptap.js does not provide an export named 'Doc' #475

Open
dedicated-1 opened this issue Oct 28, 2023 · 2 comments
Open

element-tiptap.js does not provide an export named 'Doc' #475

dedicated-1 opened this issue Oct 28, 2023 · 2 comments

Comments

@dedicated-1
Copy link

Fresh install with vue/laravel/inertia, I have following the docs

npm install --save element-tiptap

in browser console:
Uncaught (in promise) SyntaxError: The requested module '/node_modules/.vite/deps/element-tiptap.js?v=f772aedb' does not provide an export named 'Doc'

<script setup lang="ts">
import {
  Doc,
  Text,
  Paragraph,
  Heading,
  Bold,
  Underline,
  Italic,
  Strike,
  BulletList,
  OrderedList,
} from 'element-tiptap';

Are there any other instructions hanging around?

I've spend about 2 hours on it.

If I remove Doc, other imports seem to be found.

Looks real fun, I want to use this.

@KimWooYeoun
Copy link

Put ‘Document’ instead of ‘Doc’

@jbhaywood
Copy link

I just ran into this too. It would be good if the installation instructions were updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants