MMM-BackgroundSlideshow icon indicating copy to clipboard operation
MMM-BackgroundSlideshow copied to clipboard

Uncaught TypeError: Cannot read property 'childNodes' of undefined ...

Open RStadlmair opened this issue 4 years ago • 10 comments

Hi ! Trying to get your module to load, but didnt work so far. In the debugging screen of MM i get this error message. grafik

My configuration is absolutely basic. grafik

Any ideas ?

RStadlmair avatar May 15 '20 14:05 RStadlmair

It sounds like it is trying to load an image before the getDom() function is called. I think moving where this.updateImageList(); is called can fix this. I'll try it out and update push the change.

darickc avatar May 15 '20 15:05 darickc

Hi !

Just pulled your latest version and did npm install. Error is gone, still a no-show on the screen. Any Logs i may deliver for further debugging ? R.

RStadlmair avatar May 18 '20 06:05 RStadlmair

Try disabling all other modules except maybe the clock. Also, I don't know if it matters, but I don't have a trailing slash in the image paths. So try removing that: imagePaths: ['modules/MMM-BackgroundSlideshow/exampleImages']

darickc avatar May 18 '20 18:05 darickc

Hey Darickc!.

Updated Raspbian, MMM and your Module to latest version (including npm install) Disabled all Modules except Clock and yours in config.js Used your default config settings in config.js

Still no-show – sorry. How can I help figuring out what the problem is?

mfg/R.

Von: Darick Carpenter [email protected] Gesendet: Montag, 18. Mai 2020 20:14 An: darickc/MMM-BackgroundSlideshow [email protected] Cc: Roman Stadlmair [rconsult] [email protected]; Author [email protected] Betreff: Re: [darickc/MMM-BackgroundSlideshow] Uncaught TypeError: Cannot read property 'childNodes' of undefined ... (#75)

Try disabling all other modules except maybe the clock. Also, I don't know if it matters, but I don't have a trailing slash in the image paths. So try removing that: imagePaths: ['modules/MMM-BackgroundSlideshow/exampleImages']

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/darickc/MMM-BackgroundSlideshow/issues/75#issuecomment-630351943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFKXSRWXVLCDWMBKSP6KFS3RSF3HXANCNFSM4NBTUEXA.

RStadlmair avatar May 20 '20 03:05 RStadlmair

I have been having the same problem, no image. I did remove the / from the path, no help. I have tried this on a pi zero W and RPI 3b+ its the same. I did use different .img

sparky56 avatar May 21 '20 00:05 sparky56

I'm not sure how to help. What I would do is allow remote connections to the device by adding the following to your config:

address: '', port: 8080, ipWhitelist: [],

Then you can connect to it from another computer. Open up chrome on your computer, type in the IP and port of your raspberry pi and it should open it up (http://ipaddress:8080). Then you can hit F12 (on windows) to open the developer tools. On the sources tab in the left pain go to modules/MMM-BackgroundSlideshow/BackgroundSlideshow.js.

You can set breakpoints and see what values it is setting and step through the code.

I have a raspberry pi at my office that I'll do a fresh install on and see if I have any issues, but won't be until at least Monday before I get in there.

Sorry for not being much help.

darickc avatar May 21 '20 15:05 darickc

Thanks for your help.

I did like you said and found I have 8 errors

Cannot GET /modules/MMM-BackgroundSlideshow/node_modules/exif-js/exif.js

error above is the only one I can pull up to list for you.

my other errors were other modules that work, so I'm surprised they had errors.

Jon Aultman

On Thu, May 21, 2020 at 10:32 AM Darick Carpenter [email protected] wrote:

I'm not sure how to help. What I would do is allow remote connections to the device by adding the following to your config:

address: '', port: 8080, ipWhitelist: [],

Then you can connect to it from another computer. Open up chrome on your computer, type in the IP and port of your raspberry pi and it should open it up (http://ipaddress:8080). Then you can hit F12 (on windows) to open the developer tools. On the sources tab in the left pain go to modules/MMM-BackgroundSlideshow/BackgroundSlideshow.js.

You can set breakpoints and see what values it is setting and step through the code.

I have a raspberry pi at my office that I'll do a fresh install on and see if I have any issues, but won't be until at least Monday before I get in there.

Sorry for not being much help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darickc/MMM-BackgroundSlideshow/issues/75#issuecomment-632154993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRG7BP4QJFSAWG5KDAYHCLRSVCPZANCNFSM4NBTUEXA .

sparky56 avatar May 21 '20 22:05 sparky56

Did you do an "npm install" in the MMM-BackgroundSlideshow folder? If so, can you check that the exif.js file exists?

darickc avatar May 21 '20 22:05 darickc

running "npm install" from module folder fixes this issue -- I had same problem with exif.js missing. Thanks!

cknight725 avatar May 27 '20 17:05 cknight725

Having the same problem I think. I ran “npm install” in the module folder but still no luck. How do i check for exit.js file? And what do I do if it’s not there?

Joodie262 avatar Aug 16 '20 20:08 Joodie262