-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cell selection errors #521
Comments
hey @smman89, I've tried to reproduce the error but couldn't for now. |
Hello @smman89, @Chrissi2812 My solution right now is to configure webpack to transpile dependencies from prosemirror. Here it just an example with laravel-mix: mix.extend('transpileNodeModule', webpackConfig => {
const { rules } = webpackConfig.module
rules.filter(rule => rule.exclude && rule.exclude.toString() === '/(node_modules|bower_components)/')
.forEach(rule => {
rule.exclude = /node_modules\/(?!(prosemirror-tables|prosemirror-state|prosemirror-view|prosemirror-transform|prosemirror-utils)\/).*/
})
}) |
@Chrissi2812 Selecting with mouse should already do the trick, locally it fails but I cannot reproduce it on the https://tiptap.scrumpy.io/tables link. @m4n1ok Glad you already found a quick solution! Do you happen to know whether the actual bug is caused by misconfiguration of this project or by projects using it? Thanks! |
Hi @smman89, @Chrissi2812 and @m4n1ok, I digged a little deeper and it seems most prosemirror dependencies have their main entry refer to 'src/index.js' but prosemirror-tables refers to 'dist/index.js'. Another solution that seems to work is to override the resolve entry in webpack.config.js:
|
In case it helps anyone: adding
|
Thanks for sharing @tobiasfuhlroth! |
Still getting the erro :( |
Just started getting this error in 2022 after dependency updates. It has been working before. I am using Vue 3 and Vite |
I also started to get this error, and it break the previously working table implementation. I'm using Next.js 12.1.3 |
Same thing here, whenever I try to select multiple table cells:
Using Quasar + Vue 3 + Vite |
The problem seems to be in the new version of prosemirror ProseMirror/prosemirror#1286 (comment) This is something to watch out for #2854 |
@anton-liubushkin yes I already experienced this issue in our tests on the new migration branch, see this comment: #2854 (comment) |
🕺The issue was fixed for me after latest update |
Great, thanks for letting me know @tobychidi! |
Hello!
I use this example:
https://github.com/scrumpy/tiptap/blob/master/examples/Components/Routes/Tables/index.vue
I am trying to select multiple cells in one row and merge them. But when selecting cells, an error occurs:
Please help solve this problem.
Environment
The text was updated successfully, but these errors were encountered: