question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class constructor Doc cannot be invoked without 'new'

See original GitHub issue

版本:“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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
pelkinncommented, Aug 14, 2020

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

1reaction
Leecasoncommented, Aug 21, 2020

fixed in v1.26.2. Sorry for the delay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript ES6 TypeError: Class constructor Client cannot be ...
When I try to execute nodemon command I always see this error TypeError: Class constructor Client cannot be invoked without 'new'.
Read more >
Class constructor cannot be invoked without 'new' in TS
The "Class constructor cannot be invoked without new" error occurs when the target property in tsconfig.json is set to lower than es6 or...
Read more >
`TypeError: Class constructor cannot be invoked without 'new ...
Bug report. Getting the following error in my project: TypeError: Class constructor cannot be invoked without 'new'.
Read more >
Class constructor NodeEnvironment cannot be invoked ...
Class constructor NodeEnvironment cannot be invoked without 'new' ... Ran all test suites matching /db-connection/i. ... Hi @Luiz_Avila, A similar ...
Read more >
Class constructor SweetAlert cannot be invoked without 'new ...
Uncaught TypeError : Class constructor SweetAlert cannot be invoked without 'new' ... Hi,. After updating meteor version, I can not use the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found