-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build application for web using babel-plugin-react-native-web
#1274
Labels
Comments
I guess we should probably use this instead, and not support older versions of react-native-web anymore: |
msand
added a commit
that referenced
this issue
Mar 4, 2020
msand
pushed a commit
that referenced
this issue
Mar 4, 2020
# [12.0.0](v11.0.1...v12.0.0) (2020-03-04) * fix!: #1262 default width and height on svg ([1d6798b](1d6798b)), closes [#1262](#1262) * fix!: #1247 Animated view translation inside Svg tag ([0288d95](0288d95)), closes [#1247](#1247) [#1258](#1258) ### Bug Fixes * **ios:** handle gradient and pattern transform when null ([715e9b8](715e9b8)) * **ios:** pod install error ([675df92](675df92)) * **web:** [#1274](#1274) Unable to build using babel-plugin-react-native-web ([80b5064](80b5064)) * removed missing unnecessary React headers import error caused by non-framework style import ([f795029](f795029)) ### Performance Improvements * optimize extraction of fill, stroke, responder, matrix & display ([279c3fc](279c3fc)) * optimize handling of font properties in G elements ([0fa4177](0fa4177)) * optimize handling of inherited styles ([363c1b4](363c1b4)) * optimize svg root prop handling, simplify element development ([f0cd11d](f0cd11d)) ### BREAKING CHANGES * default size might change if width or height is missing * Behavior of native elements is reverted to pre v10
@xdmnl Can you try with the latest version? |
Closing for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
I recently upgraded to react-native-web 0.12.0 and react-native-svg 11.0.1. Unfortunately, it broke my build using metro and babel-plugin-react-native-web (0.12.0).
Downgrading to react-native-svg 10.0.1 and react-natibe-web 0.11.7 fixes the issue.
Looking at the built files, it appears that the published package does not allow the babel plugin for react native web to rewrite the
require
added by #1240:Environment info
React native info output:
Library version: 11.0.1
Steps To Reproduce
metro build ./index.ts --platform web --out ./index.web.js
As long as index.ts uses react-native-svg, the output error is
The text was updated successfully, but these errors were encountered: