element-tiptap
element-tiptap copied to clipboard
element-tiptap.js does not provide an export named 'Doc'
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.
Put ‘Document’ instead of ‘Doc’
I just ran into this too. It would be good if the installation instructions were updated.