bhj / KaraokeEternal

Open karaoke party system
https://www.karaoke-eternal.com
ISC License
452 stars 67 forks source link

Node.appendChild: Argument 1 is not an object #33

Closed gazugafan closed 3 years ago

gazugafan commented 3 years ago

On a fresh install, I get the following error immediately after logging in or creating an account...

TypeError Node.appendChild: Argument 1 is not an object. Call Stack  paint/<   karaoke-forever/./node_modules/react-github-btn/index.js:33:16

image

... but after dismissing the error, everything seems to work just fine!

To reproduce...

git clone https://github.com/bhj/karaoke-forever.git .
npm install
npm run dev

Open the app in a browser (Firefox and Chrome tested) and attempt to login or create a new account.

node v16.4.2 npm 7.18.1 CentOS 8.1

Seems to have something to do with react-github-btn used on the About component, but it all looks fine to me and works as expected when you actually see it.

bhj commented 3 years ago

I agree it's annoying, though it only looks like a showstopper due to the error reporting in dev mode. The error seems to be a side-effect of the transition from SignedOutView to SignedInView as an admin. Hopefully a fix can be pushed to react-github-btn once tracked down further.

gazugafan commented 3 years ago

Ah, yes! Can confirm it only happens in dev mode. Not a big deal then :)

bhj commented 3 years ago

I'd love to get it fixed, either by replacing/removing or fixing via PR. Good first issue maybe :)

gazugafan commented 3 years ago

Spoiler alert... I've got a giant PR coming your way soon already ;)

But yeah, looks like a really simple dependency to just remove.

bhj commented 3 years ago

Submitted a PR: https://github.com/ntkme/react-github-btn/pull/13