react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

fix: web exports on prepare file

Open migueldaipre opened this issue 1 year ago • 0 comments

Summary

Fixes https://github.com/software-mansion/react-native-svg/discussions/2401

Fixes error in prepare.ts file that imports hasTouchableProperty from a '.' file.

It's probably related to the way ESM works, I'm not sure. I base it on PR

(0 , _.hasTouchableProperty) is not a function 
TypeError: (0 , _.hasTouchableProperty) is not a function 
at prepare
image

Test Plan

Should work without error on web

https://github.com/user-attachments/assets/4f7143bf-06f8-4684-844c-d5a147837adb

Compatibility

OS Implemented
Web

Checklist

  • [X] I have tested this on a web project

migueldaipre avatar Aug 28 '24 01:08 migueldaipre