• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Uncaught SyntaxError in weather.js

Scheduled Pinned Locked Moved Solved Troubleshooting
2 Posts 2 Posters 241 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    RobertM
    last edited by Apr 29, 2023, 12:51 PM

    Hi, after updating to the last version, I get the following error:

    Uncaught SyntaxError: Unexpected token .   :8080/modules/defaul…ther/weather.js:146
    

    This is the line 146:

    const hourlyData = this.weatherProvider.weatherHourly()?.filter((e, i) => (i + 1) % this.config.hourlyForecastIncrements === this.config.hourlyForecastIncrements - 1);
    

    I use the chromium-browser 72.0.3626.121-0+rpt4. When i connect to the magicmirror address with my macbook and use the google chrome browser it works without error.

    Anyone an idea

    S 1 Reply Last reply Apr 29, 2023, 2:22 PM Reply Quote 0
    • S Offline
      sdetweil @RobertM
      last edited by sdetweil Apr 29, 2023, 2:25 PM Apr 29, 2023, 2:22 PM

      @RobertM yes. your browser needs to be at version 80 or above for the JavaScript we use

      see
      https://forum.magicmirror.builders/topic/17677/mirror-showing-not-all-modules-on-all-devices/11?_=1682778145206

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      1 / 1
      • First post
        2/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy