My code:
import React from "react";
import { useEditor } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';
import { RichTextEditor } from '@mantine/tiptap';
function RichText() {
const editor = useEditor({
extensions: [
StarterKit
],
content: '',
});
return (
<RichTextEditor editor={editor}>
<RichTextEditor.Content />
</RichTextEditor>
);
}
export default RichText;
Error: Uncaught TypeError: Failed to fetch dynamically imported module
How to fix?