Skip to content

Javascript error - Cannot read property 'content' of undefined #2137

Closed
@deepfriedbrain

Description

@deepfriedbrain

Environment

  • Minimal Mistakes version: 4.16.0
  • Ruby gem or remote theme version: 2.5.1p57
  • Jekyll version: 3.8.5
  • Git repository URL:
  • GitHub Pages hosted (if yes provide URL to site):
  • Operating system: MacOS 10.14.1

Expected behavior

I'm trying to upgrade from theme version 4.6.0 to 4.16.0. I'm almost there but running into a javascript error when I scroll some pages all the way to the bottom. I have not seen anything broken due to this error, but it would be good to eliminate any errors on the site. I have not modified the main.min.js. It's coming straight from the theme repo.

Uncaught TypeError: Cannot read property 'content' of undefined
    at c (main.min.js:9)
    at f (main.min.js:9)
    at d.detect (main.min.js:9)
c @ main.min.js:9
f @ main.min.js:9
d.detect @ main.min.js:9
requestAnimationFrame (async)
h @ main.min.js:9

It's happening on some pages but not all. I tried a lot to troubleshoot but have not been able to figure out the root cause.

Does it have something to do with one of the new scroll scripts?

Any help will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions