sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
423 stars 182 forks source link

[Bug]: Mentions & Tags Demo Issue Schema is missing its top node type ('doc') #512

Closed gorkemyontem closed 3 months ago

gorkemyontem commented 4 months ago

What happened?

When attempting to use the Mentions & Tags demo in ngx-editor, I encountered an "Uncaught RangeError: Schema is missing its top node type ('doc')" error. This issue is reproducible not only in my local environment but also on the documentation website where the demo is showcased.

Version

v16.0.1

Angular Version

v17.0.1

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

Uncaught RangeError: Schema is missing its top node type ('doc')
    at Function.compile (index.cjs:1814:35)
    at new Schema (index.cjs:1893:133)
    at 391 (schema.ts:6:16)
    at __webpack_require__ (bootstrap:19:1)
    at 36777 (changelog-new.component.ts:18:1)
    at __webpack_require__ (bootstrap:19:1)
    at 71922 (changelog.routes.ts:5:1)
    at __webpack_require__ (bootstrap:19:1)
    at 10611 (app.config.ts:17:1)
    at __webpack_require__ (bootstrap:19:1)

Willing to submit a PR?

None

sibiraj-s commented 4 months ago

please share a reproducible example. you can see a working demo here https://sibiraj-s.github.io/ngx-editor/examples/mentions/

gorkemyontem commented 3 months ago

Hi there, I have decided not to use this project. You may close this issue if you want. But I have to tell you, the demo that you have shared is not working. I cannot see a working demo. I'm sorry.

image

sibiraj-s commented 3 months ago

Cool. I'll verify later why the example doesn't work.

sibiraj-s commented 3 months ago

Seems something wrong with the compiler in stackblitz. Worked after reloading once or twice. (with no code changes)

Screenshot 2024-01-21 at 7 50 38 PM
github-actions[bot] commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.