darickc / MMM-BackgroundSlideshow

MIT License
145 stars 84 forks source link

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

Open RStadlmair opened 4 years ago

RStadlmair commented 4 years ago

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 ?

darickc commented 4 years ago

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.

RStadlmair commented 4 years ago

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.

darickc commented 4 years ago

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']

RStadlmair commented 4 years ago

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 notifications@github.com Gesendet: Montag, 18. Mai 2020 20:14 An: darickc/MMM-BackgroundSlideshow MMM-BackgroundSlideshow@noreply.github.com Cc: Roman Stadlmair [rconsult] rs@rconsult.at; Author author@noreply.github.com 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.

sparky56 commented 4 years ago

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

darickc commented 4 years ago

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.

sparky56 commented 4 years ago

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 notifications@github.com 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 .

darickc commented 4 years ago

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

cknight725 commented 4 years ago

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

Joodie262 commented 4 years ago

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?