element-tiptap: Class constructor Doc cannot be invoked without 'new'

版本:“element-tiptap”: “^1.26.0”, 按照文档的代码直接粘贴的,报错

TypeError: Class constructor Doc cannot be invoked without 'new'

TypeError: Class constructor Extension cannot be invoked without 'new'

经过修改官方的codesandbox的"element-tiptap": “1.25.3”,为"element-tiptap": “1.26.0”,一样会报错,并且无法正常显示编辑器,希望作者在发布新版本前测试一下

还有README中的USAGE中的data(){}的语法都不对,你可以直接粘贴到IDE试试,作为用法介绍最好贴一个正确的入门code

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I have the same problem. I don’t use the type script, please fix it

fixed in v1.26.2. Sorry for the delay.