software-mansion / react-native-svg

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

react-native-svg crashing in release #2413

Closed hosseinmd closed 3 days ago

hosseinmd commented 3 weeks ago

Description

The main issue is here: https://github.com/callstack/repack/issues/115 We got this error on release mode TypeError: Cannot read property 'descriptors' of undefined

that was because of import { SvgCssUri } from 'react-native-svg/css';

Steps to reproduce

Add this code to your react-native code import { SvgCssUri } from 'react-native-svg/css'; build release mode with repack

Snack or a link to a repository

https://github.com/callstack/repack/issues/115

SVG version

15.4.0

React Native version

0.74.4

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 3 weeks 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?

bohdanprog commented 3 weeks ago

Hello @hosseinmd, please provide a minimal reproduction repository if you are facing this issue.