You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using svelte with Katex, the latter possible changes DOM (not sure about this) that cause the above error when I change the filter criteria for a list. I don't see this error if I don't use Katex.
Your browser and the version:
Version 1.10.90 Chromium: 83.0.4103.97 (Official Build) (64-bit)
Your operating system:
OSX 10.14.4
Svelte version
I believe I am using svelte 3.23.2 (based on the Changelog.md file).
Whether your project uses Webpack or Rollup
Parcel
Severity
Make svelte usage difficult, since it would not work with Katex, which is essential to the
content.
Additional context
I replied in another issue with this same problem. But that has been closed, so I am not sure if anyone is paying attention to it. The following is what works, which may give further idea about the issue.
I thought that destroying the problematic content and re-rendering from scratch should help (because svelte is having trouble updating the content). I, however, don't know how to do that. I searched about this, and it appears that putting content in a #if block and setting the if condition to false and and then true could work. I tried that, but by iteself that did not help me. I get the same error.
Then, I tried the solution suggested by @ciri in issue 2086. The file he mentions does not exist in svelte 3.23.2. But I found that content in both svelte/internal/index.js and svelte/internal/index.mjs. By itself, the solution did not work.
However, both of the above combined do work.
The text was updated successfully, but these errors were encountered:
The issue you have raised relates to a library which makes modifications to the dom which Svelte isn't in control of. It's likely therefore that it maniplulates the dom in some way and doesn't clean up after itself, or you're not calling the cleanup method in onDestroy. Either way, this doesn't seem to be a problem with Svelte.
In addition, you're using Svelte with Parcel, which is fine, but adds another layer of complexity which we don't know about, and aren't able to support.
I'm going to close this issue as it doesn't relate to something we can fix, and would be better asked in chat. However, I would suggest that making a REPL to demonstrate your issue, so that we (and other contributors) can better understand the issue and play with the code in order to determine the cause.
I apologise if this answer isn't the one you want, we're certainly not ignoring you, there are just too many factors outside of our control here which are likely the root cause of your issue.
@antony Thank you for your reply. From next time I will move to chat (I did not know about it). Your response was helpful. I realized that my component was not getting destroyed properly.
Describe the bug
When using svelte with Katex, the latter possible changes DOM (not sure about this) that cause the above error when I change the filter criteria for a list. I don't see this error if I don't use Katex.
Stack trace
Information about your Svelte project:
Your browser and the version:
Version 1.10.90 Chromium: 83.0.4103.97 (Official Build) (64-bit)
Your operating system:
OSX 10.14.4
Svelte version
I believe I am using svelte 3.23.2 (based on the Changelog.md file).
Whether your project uses Webpack or Rollup
Parcel
Severity
Make svelte usage difficult, since it would not work with Katex, which is essential to the
content.
Additional context
I replied in another issue with this same problem. But that has been closed, so I am not sure if anyone is paying attention to it. The following is what works, which may give further idea about the issue.
I thought that destroying the problematic content and re-rendering from scratch should help (because svelte is having trouble updating the content). I, however, don't know how to do that. I searched about this, and it appears that putting content in a #if block and setting the if condition to
false
and and thentrue
could work. I tried that, but by iteself that did not help me. I get the same error.Then, I tried the solution suggested by @ciri in issue 2086. The file he mentions does not exist in svelte 3.23.2. But I found that content in both svelte/internal/index.js and svelte/internal/index.mjs. By itself, the solution did not work.
However, both of the above combined do work.
The text was updated successfully, but these errors were encountered: