-
Notifications
You must be signed in to change notification settings - Fork 10
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
Tried to run but got error RN Version 0.61.5 #3
Comments
It seems like babel it's not transforming the JSX, since it's in node_modules. Can you provide your babel and metro configs? |
babel.config.js module.exports = (api) => { return { metro.config.js /**
module.exports = { You also provided snack playground example I tried it without expo. |
I've just published 1.0.2 which should fix the issue on non-expo projects. I know they're not exactly easy to follow but I trust you'll be able to understand them. |
I am using yarn tool with react-native-web and according to new README Am i need to directly add it or first download the plugin and after that eject then install it from my local drive? |
It doesn't really matter. If you already have the dependency, you can eject and modify the webpack config, and it should start working. Ejecting exposes all of the webpack configuration that react-scripts handles for you. See https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md#npm-run-eject |
I tried it with README instruction. But I got same error Here it is my project { webpack.config,js. 'use strict'; const fs = require('fs'); const postcssNormalize = require('postcss-normalize'); const appPackageJson = require(paths.appPackageJson); // Source maps are resource heavy and can cause out of memory issue for large source files. const isExtendingEslintConfig = process.env.EXTEND_ESLINT === 'true'; const imageInlineSizeLimit = parseInt( // Check if TypeScript is setup // style files regexes // This is the production and development configuration. // Variable used for enabling profiling in Production // We will provide // common function to get style loaders return {
}; After eject but got same error. Failed to compile 19 | //eslint-disable-next-line react/display-name
|
Mhhh I really don't know, then. |
Problem resolved thanks with this https://github.com/VISI-ONE/create-react-native-web-example/issues/1 now i understand eject not required no changes only modify to webpack.config.js |
Got it. Thanks! I'll test it and update the README if eject is indeed not needed |
SyntaxError: appfolder\node_modules\react-native-web-refresh-control\src\index.js: Unexpected token (21:6)
19 | //eslint-disable-next-line react/display-name
20 | renderScrollComponent: props => (
The text was updated successfully, but these errors were encountered: