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

Uncaught TypeError: setting getter-only property "Package" tex-chtml-full.js:1:13781 #3106

Open
thx1111 opened this issue Sep 26, 2023 · 3 comments
Labels
Accepted Issue has been reproduced by MathJax team v3

Comments

@thx1111
Copy link

thx1111 commented Sep 26, 2023

Issue Summary

Watching the console log, there is a bit of an otherwise harmless housekeeping exception being thrown repeatedly by MathJax itself, whenever the mouse cursor enters the iframe:

Steps to Reproduce:

See from bottom of Scroll Position corruption #3094

Technical details:

mathjax 3.2.2-1
Arch Linux
firefox-nightly-bin 118.0a1.20230815.091726-1

<script>
  window.MathJax = {

// run scrollTo() a second time after MathJax typesetting is complete
    startup: {
      pageReady: () => {
        return MathJax.startup.defaultPageReady().then(() => {
          scrollTo({
            left: mjx.xscroll,
            top: mjx.yscroll,
            behavior: "smooth"
          });
          console.log("Second Scroll: " + mjx.xscroll + " " + mjx.yscroll);
          parent.mjax = true;
        });
      }
    },

//  loader: {load: ['ui/lazy']},

    tex: {
      inlineMath: [['$', '$'], ['\\(', '\\)']]
    }

  };
</script>
<script>
    document.querySelector('html').onmouseenter = function() {
     var scriptx = document.createElement('script');
//     scriptx.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js';
     scriptx.src = 'mathjax/tex-chtml-full.js';
     scriptx.async = true;
     document.head.appendChild(scriptx);
    };
</script>
@kbjwes77
Copy link

kbjwes77 commented Feb 6, 2024

I am also experiencing this otherwise harmless bug.

  • MathJax v3.2.2-1
  • Google Chrome Version 121.0.6167.140 (64-bit)
    • All extensions disabled
  • Windows 11

image

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team v3 labels Mar 3, 2024
@dpvc
Copy link
Member

dpvc commented Mar 3, 2024

I know what is causing the problem, and it is fixed in the upcoming v4 release (currently in beta). Unfortunately, I have not been able to workout a patch for the current v3 release, since the error is produced while processing the MathJax configuration, which is before any of the hooks run that can be used to modify MathJax on the fly. The situations that cause this to occur in v3 seem to be relatively rare, and may have to do with the menu settings (e.g., when the renderer has been changed via the "Math Settings" submenu), so resetting the menu settings may prevent this.

@qqqqfl
Copy link

qqqqfl commented Apr 9, 2024

我也遇到了这个原本无害的错误。

  • MathJax v3.2.2-1

  • 谷歌浏览器版本 121.0.6167.140(64 位)

    • 所有扩展已禁用
  • 视窗11

图像

请问您解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team v3
Projects
None yet
Development

No branches or pull requests

4 participants