MMRIZE / MMM-CalendarExt3

MagicMirror calendar view module
MIT License
58 stars 22 forks source link

MMM-CalendarExt3.js SyntaxError - Not Running #28

Closed CurlyQ12391 closed 2 years ago

CurlyQ12391 commented 2 years ago

Hello,

This might be my fault since I asked for functionality with the RandomBrainstormer GoogleCalendar module, so apologies if so.

First off, I am unable to run with the new eventTransformer code in the main config file because it states there are syntax errors (It doesn't like the extra periods?). I did post this to the discussion board we have going.

since that functionality will not work, I removed the eventTransformer code from the main config file but the calendar wont load. in Dev mode it seems as though there is a SyntaxError in the MMM-CalendarExt3.js file line 61. The error specifically says "Uncaught SyntaxError: Unexpected token ?" Can you assist?

eouia commented 2 years ago

?. is an optional chaining operator introduced as a feature of ES2020. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining If it produces a syntax error, it might mean your browser(chromium or electron) is somehow an old/legacy version. Or your browser is not compatible with modern JavaScript technology. Which front interface are you using? If you are using Midori (the legacy default browser of RPI), maybe Midori is obsoleted. If you are using chromium-based electron, probably its version might be lower than 8.0 (2020 Feb. released). In that case, you need to update your electron above 8.0. The easiest way might be to reinstall(not update) your MM with the recent version.

CurlyQ12391 commented 2 years ago

Thats odd.

I am running on a quite new Pi with Raspian 10. I checked and I have Electron 20.1.1. and Chromium 92.0.4515.98. Is there anything else you can think for me to check or do before reinstalling MagicMirror? The module seemed to be running before I asked about integration with that MMM-GoogleCalendar.

eouia commented 2 years ago

Send me your full config.js

CurlyQ12391 commented 2 years ago

I sent the full config via the email listed on your profile.

eouia commented 2 years ago

Thx. I’ll check it tomorrow

eouia commented 2 years ago

Is it still an issue? We've made a series of conversations via mail about this. If you have further issue, reopen or post new issue about it.