Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select table cells #1286

Closed
anton-liubushkin opened this issue Jun 16, 2022 · 3 comments
Closed

Unable to select table cells #1286

anton-liubushkin opened this issue Jun 16, 2022 · 3 comments

Comments

@anton-liubushkin
Copy link

I encountered a problem after updating prosemirror-state from 1.3.4 to 1.4.0.

When I try to select cells in a table, an error appears: Cannot call a class constructor without [new]

Screen Shot 2022-06-16 at 3 15 36 PM

@DioNNiS
Copy link

DioNNiS commented Jun 16, 2022

+1

@iamursky
Copy link

I have the same issue.

@marijnh
Copy link
Member

marijnh commented Jun 17, 2022

The ES modules distributed by ProseMirror now use ES6 class syntax. This means you can't subclass them from ES5-compiled function classes. You'll have to either not compile your own code down, or make sure you compile the ProseMirror libraries down, or use the CommonJS modules in the ProseMirror packages, which are still ES5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants