Joshua Yoes
Joshua Yoes
Can you post a reproduction repo?
Currently, `reactotron-react-js` does not automatically track network requests in the same way that `reactotron-react-native` does. However, you can introduce that functionality with [reactotron-apisauce](https://www.npmjs.com/package/reactotron-apisauce)
There seems to be one other stack overflow article with this exact error: https://stackoverflow.com/questions/74581572/pushing-an-object-to-an-array-react-native-firestore
Tried pairing with ChatGPT on this, seems to be something about mutating references to properties in a class? https://sharegpt.com/c/rzXf15z
So it turns out that Hermes cannot handle Javascript classes:
This seems to be handled by babel by [metro-react-native-babel-preset](https://www.npmjs.com/package/metro-react-native-babel-preset) Babel does have a plugin to handle classes: https://github.com/facebook/metro/blob/ac3adced45a6ca32286dda9e9470eab6eb4218bf/packages/metro-react-native-babel-preset/src/configs/main.js#L76 Which appears to make properties read only: [Playground](https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=false&spec=false&loose=false&code_lz=MYGwhgzhAEBKCmZgBcD2yBOqB2BJAtgA4jQDe0AUNNMDhJgK4qoYAUAlGVddMgBYBLCADpiDAOYDsMALzQA2gF0A3NAD0a6LmwDkAsCAEAveLz6mA5GMnSL0MBgxgAntClnTtaY2YZuAXwpuBgh4VmspTnJuan4hURAJKRFCEL5wxJt2VRjoDHhkBgxsMyFlAIpAii96PMRmTBxoOWx4AHc4erRGvCIQDgp8pG6sbFE01lJ_diA&debug=false&forceAllTransforms=false&modules=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Cstage-2&prettier=false&targets=&version=7.21.4&externalPlugins=%40babel%2Fplugin-transform-classes%407.21.0&assumptions=%7B%7D) But I fed this...
You can also run apply this `patch-package` patch Add this to `patch/escpos-usb+3.0.0-alpha.4.patch` ``` diff --git a/node_modules/escpos-usb/index.js b/node_modules/escpos-usb/index.js index 8c21546..7b3aa42 100644 --- a/node_modules/escpos-usb/index.js +++ b/node_modules/escpos-usb/index.js @@ -25,7 +25,7 @@ const IFACE_CLASS...
For applying installed suggestions, I've developed a `winget` configuration that has been working for me. https://github.com/joshuayoes/ReactNativeWindowsSandbox
I have started a declaration file at this repository https://github.com/joshuayoes/ReactNativeWindowsSandbox It is currently a work in progress, but so far many of the dependencies are working.
I've pushed some updates to https://github.com/joshuayoes/ReactNativeWindowsSandbox, it now passes the validation phase of [rnw-dependencies.ps1](https://github.com/acoates-ms/react-native-windows/blob/05958ff5fe2f366a2b2d1cce07cb80e4cd6f65f1/vnext/Scripts/dependencies.ps1). Would ya'll be able to verify it works on your end, then we can work on...