Complete BLoC with Clean Architecture (group chat) Discount !! E-commerce App With Backend Source Code Video and Voice Chatting App Firebase Chatting App Source Code Complete Gym App BLoC State Management Source Code Complete Study App Buy Ticket Booking App Source Code Buy Travel App With Backend Source Code Complete Chat App Udemy Course Special Offer Discount !! Online Learning Course App (BLoC) Online Learning Course App (Riverpod) Online Learning Course App (Getx) Discount !! Shopping App (Provider) Cool Flutter Game Flutter Nodejs Chat App Flutter Nodejs Api And Firebase Chat App Riverpod Task Management App
The above error for javascript happens due to many reasons we get Uncaught TypeError: Cannot read property 'children' of null.
Now first you need to check if your document Id which you get through document.getElementById() is correct. This string must be correct one.
It's same for the querySelector.
One big reason it happens due to DOM object is not ready, which means your document ID doesn't exist in the DOM at the moment of execution of this code.
Move your javascript files or scripts out of the head tag and you should be good. It's better you put the js content before </body> tag.
So move it to the right place and don't put in the <head></head> tag section.
Try copying your <script>code</script>
right before the </body>
tag.
If the above solution did not work, then put your javascript code after </body>
tag.
React Native tutorial with Nodejs restful api