Release 0.1.157 - TypeError: Cannot read property 'isBatchingLegacy' of undefined
See original GitHub issueDescription
Hello,
Trying this library this morning (which by the way seems pretty amazing), I found out the following error on release 0.1.157.
TypeError: Cannot read property 'isBatchingLegacy' of undefined
Environnement :
Platform : Android Device : Read device (google pixel 3a)
Version
0.1.157
Steps to reproduce
My code :
const SkiaRaw = observer(({ }: { }) => {
const image = useImage('https://bit.ly/3fkulX5')
if (!image) {
return null
}
return (
<View style={{ width: 300, height: 300, backgroundColor: 'white' }}>
<Canvas style={{ flex: 1 }}>{image && <Image image={image} fit="contain" x={0} y={0} width={256} height={256} />}</Canvas>
</View>
)
})
export const Skia = SkiaRaw
The error :
TypeError: Cannot read property 'isBatchingLegacy' of undefined
The workaround :
Downgrading to 0.1.156 made it work
Snack, code example, screenshot, or link to a repository
Code shared in Steps to reproduce section
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:10
Top Results From Across the Web
Uncaught TypeError: Cannot read properties of undefined ...
The problem was that I installed the latest version of react-test-renderer v18.0.1 when the React version is v17.0.2.
Read more >typeerror: cannot read properties of undefined ... - You.com
The error occurred during App initialization. TypeError Cannot read properties of undefined (reading 'isBatchingLegacy'). Change the version of react-dom to ...
Read more >Troubleshooting | React Native Testing Library - Open Source
TypeError : Cannot read property 'isBatchingLegacy' of undefined when calling render(). Example repository. We maintain an example repository that showcases a ...
Read more >How to Read React Errors (fix 'Cannot read property of ...
Got an error like this in your React component? Cannot read property `map` of undefined. In this post we'll talk about how to...
Read more >Use ES6 Arrow Functions to Resolve "TypeError - Pluralsight
1TypeError: Cannot read property '<your property name>' of undefined. If you run into this error while writing React, the odds are high that ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
RN Skia should support RN back to version 0.64. Would be awesome to get a more complete example with some explanation, maybe a small project on Github reproducing only this behaviour?
The main thing that happened between 0.1.156/0.1.157 was that we upgraded the reconciler to version 0.27 - could this be related? Could you try adding
react-reconcilerversion 0.29 (which seems to be the latest one) as a dependency in your project to see if it helps solve the error?@nica0012 I don’t think so. I’m currently using it on
"react-native": "0.68.2".