0

This day I study React Native, but one problem is too hard

react-native-cli: 2.0.1
error: index.js: Unknown option: .plugs. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

this is my script index.js

import {AppRegistry} from 'react-native';
import App from '~/App';
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => App);

What is the problem?

1 Answer 1

1

Replace import App from '~/App'; with import App from './App';

Sign up to request clarification or add additional context in comments.

1 Comment

First thank you for comment! Is not work... I use type script and babel plugin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.