element-tiptap icon indicating copy to clipboard operation
element-tiptap copied to clipboard

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

Open dedicated-1 opened this issue 1 year ago • 2 comments

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.

dedicated-1 avatar Oct 28 '23 15:10 dedicated-1

Put ‘Document’ instead of ‘Doc’

KimWooYeoun avatar Nov 02 '23 09:11 KimWooYeoun

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

jbhaywood avatar Dec 25 '23 21:12 jbhaywood