-
Notifications
You must be signed in to change notification settings - Fork 953
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
Failed to compile in react native web app instance using EvaIconsPack #991
Comments
It looks like you're not transpiling You'll have to add something like this in module: {
rules: [
// This would match almost any react-native module
{
test: /(@?react-(navigation|native)).*\.(ts|js)x?$/,
include: /node_modules/,
exclude: [/react-native-web/, /\.(native|ios|android)\.(ts|js)x?$/],
loader: 'babel-loader'
},
// This would match ui-kitten
{
test: /@?(ui-kitten|eva-design).*\.(ts|js)x?$/,
loader: 'babel-loader'
}
]
} |
@lesmo thanks for supporting 🙏 |
If I add that I get the following error:
@lesmo Any idea? ty |
I face same issues with vue js. Any recommendations? Please. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
My app was build from TS template using installation guide in the docs.
npx react-native init MyApp --template @ui-kitten/template-ts
My app does not use expo.
My app has single screen with button and icon of facebook from the example in the docs.
IconRegistry is configured according to the docs as well:
It works perfectly in iOS simulator.
On top of that I installed and added Web support via react-native-web package.
Compiling for web produces following error:
The only way to run web app is to remove IconRegistry and icon usage.
To Reproduce
Steps to reproduce the behavior:
Install and setup react-native-web on top of the react-native-ui-kitten based app using eva-icons for the icons.
Expected behavior
Web app should compile without error in Web app.
Link to runnable example or repository (highly encouraged)
https://codesandbox.io/s/competent-currying-oh8wx
UI Kitten and Eva version
Environment information
The text was updated successfully, but these errors were encountered: