software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
MIT License
7.42k stars 1.12k forks source link

Windows: 'RNSVGSvgViewModule' could not be found #2370

Open k1mmm opened 1 month ago

k1mmm commented 1 month ago

Description

Calling toDataURL() results in error on Windows

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNSVGSvgViewModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","Timing","AppState","SourceCode","BlobModule","WebSocketModule","DevSettings","Networking","UIManager","DeviceInfo","ImageLoader","LinkingManager","Appearance","NativeAnimatedModule","RNCAsyncStorage","RNCClipboard","FileReaderModule"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","DevToolsSettingsManager","RedBox","BugReporting","HeadlessJsTaskSupport","DeviceEventManager","SoundManager","IntentAndroid","PlatformLocalStorage","RNC_AsyncSQLiteDBStorage","FrameRateLogger","KeyboardObserver","RNSVGSvgViewModule"]}

Steps to reproduce

Set up a ref to element and call .toDataURL()

Snack or a link to a repository

https://github.com/k1mmm/react-native-svg-to-data-url

SVG version

15.4.0

React Native version

0.74.3

Platforms

Android, iOS, macOS, Web

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 1 month ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

k1mmm commented 1 month ago

Here's a link to a minimal reproduction repo =) https://github.com/k1mmm/react-native-svg-to-data-url

bohdanprog commented 1 month ago

CC @marlenecota