thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.66k stars 852 forks source link

[BUG]: Got Type Errror at NativeWebSocketModule.connect when: Show Element Inspector => Choose Network tab #396

Closed thaibm closed 7 months ago

thaibm commented 7 months ago

react-native environment setup

Description

Got Type Errror at NativeWebSocketModule.connect when: Show Element Inspector => Choose tab Network

Message details:


 Error: TypeError: Cannot assign to property 'connect' on HostObject with default setter

This error is located at:
    in NetworkOverlay (created by InspectorPanel)
    in RCTView (created by View)
    in View (created by InspectorPanel)
    in InspectorPanel (created by Inspector)
    in RCTView (created by View)
    in View (created by Inspector)
    in RCTView (created by View)
    in View (created by Inspector)
    in Inspector
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in TrudiPortal(RootComponent), js engine: hermes

in file: node_modules\react-native\Libraries\WebSocket\WebSocketInterceptor.js image

Version

latest

Do you use TypeScript?

On which OS this issue appear on?

Desktop OS

Window 10

JeremyDolle commented 7 months ago

I will check that.

Why don't you use flipper for network inspection ?

thaibm commented 7 months ago

flipper

Thank you.