Closed efstathiosntonas closed 2 months 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?
Actually issue does contain enough info. It's enough to compare value of "types" field in package.json
and actual file locations in node_modules after installing.
This issue most probably related to https://github.com/software-mansion/react-native-svg/commit/a089cc2efcbea01de1a2b87c852b09d525a105ae#diff-b55cdbef4907b7045f32cc5360d48d262cca5f94062e353089f189f4460039e0R24 which include additional folders to tsconfig.json
, now bob
(and typescript
) builds not only src
content, but also e2e
and do not do folder aggregation ;-)
May be solution is distinct tsconfig.build.json
used only for build without e2e folder.
Thanks @jakex7 for the quick fix!
Hello,
thank you for reporting this issue so quickly. I was able to resolve it in #2454, and the fix has been included in the v15.7.1
release.
Description
After upgrading to 15.7.0 the types are missing because this line:
https://github.com/software-mansion/react-native-svg/blob/1ca8edd6d2ada9f1c1f92de77db2090c3d6317c7/package.json#L13
should be(?):
"types": "lib/typescript/src/index.d.ts",
Steps to reproduce
Snack or a link to a repository
none
SVG version
15.7.0
React Native version
0.75.3
Platforms
Android, iOS, macOS, Web
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
None
Device
iOS simulator
Device model
No response
Acknowledgements
Yes