bhj/KaraokeEternal

Node.appendChild: Argument 1 is not an object

gazugafan opened this issue · 5 comments

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

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.

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

bhj commented

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

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

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