steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
11.8k stars 980 forks source link

Cannot import Editor from novel bug: #399

Open Luke849 opened 1 month ago

Luke849 commented 1 month ago

Provide environment information

made a fresh next.js project and installed novel with npm i novel

Describe the bug

I wanted to try out novel and followed the starter guide: novel As mentioned, I have npm i novel needed to install. Also i have added the code :

import { Editor } from "novel";

export default function Home() {
  return (
    <main className="min-h-screen">
      <Editor/>
    </main>
  );
}

but now I get this error: image

can someone help me with that error?

Greetings Luke

Link to reproduction

https://github.com/Luke849/digital-creator

To reproduce

As I said, I did everything as in this tutorial: novel

Additional information

No response

MODSetter commented 1 month ago

Docs are old. Clone the repo to see working example.