Не удается разрешить '@ babel / runtime / helpers / assertThisInitialized' - PullRequest
0 голосов
/ 22 февраля 2020

Я создаю приложение, основанное на определении местоположения, с использованиемact-native и столкнулось с проблемой при создании формы.

import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Button, FormLabel, FormInput, FormValidationMessage } from 'react-native-elements';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.title}>Walkwaves</Text>
        <FormLabel style={{padding: 20}}>Enter Co-ordinates (latitude, longitude)</FormLabel>
        <FormInput containerStyle={styles.input} />
        <Button title='Geocode'
      buttonStyle={styles.button}
      color='#ffffff' />
        <Text style={styles.result}>Human understandable address</Text>
      </View>
    )
  }
}

В приведенном выше коде это должно быть выведено:

Но я получаю

 web  Failed to compile.
/Users/<user>/node_modules/react-native-elements/src/input/Input.js
Module not found: Can't resolve '@babel/runtime/helpers/assertThisInitialized' in '/Users/<user>/node_modules/react-native-elements/src/input'

Я уже обновил @ babel / core до 7.8.4, используя пряжу, но все еще получаю ошибку.

Вот ссылка на учебник, который я делаю https://learnetto.com/tutorials/react-native-geocoder

...