hunghg255 / reactjs-tiptap-editor

A modern WYSIWYG rich text editor based on tiptap and shadcn ui for Reactjs
https://reactjs-tiptap-editor.vercel.app/
MIT License
207 stars 38 forks source link

[Bug] Could not resolve "y-prosemirror" #70

Closed lqminh2207 closed 1 month ago

lqminh2207 commented 1 month ago

I got this bug when follow basic installation

image

image

import { useState } from 'react';

import RichTextEditor, { BaseKit } from 'reactjs-tiptap-editor';
import 'reactjs-tiptap-editor/style.css';

const extensions = [
  BaseKit.configure({
    // Show placeholder
    placeholder: {
      showOnlyCurrent: true,
    },

    // Character count
    characterCount: {
      limit: 50_000,
    },
  }),
];

const DEFAULT = '';

export default function RichTextExample() {
  const [content, setContent] = useState(DEFAULT);

  const onChangeContent = (value: any) => {
    setContent(value);
  };

  return (
    <RichTextEditor
      output="html"
      content={content}
      extensions={extensions}
      onChangeContent={onChangeContent}
    />
  );
}
hunghg255 commented 1 month ago

@lqminh2207 Hi, you can resolve to install y-prosemirror I will check this bug

lqminh2207 commented 1 month ago

@hunghg255 It seem that repo is not public

image

hunghg255 commented 1 month ago

@lqminh2207 maybe you need to move use npm or pnpm because that library is not yet available on yarn