leecade / leecade/react-native-swiper

Cannot assign to read only property 'exports' of object - error

Open
#1,117 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Which OS ?

Windows

Version

Which versions are you using:

  • react-native-swiper v?1.5.14
  • react-native v0.?.?0.59.8
Expected behaviour

Basic swipe functionaly code works

Actual behaviour

Cannot assign to read only property 'exports' of object - error
AvatarSelectionScreen_BasicSwipe.txt
Error

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce
  1. Create a react-native project.
  2. Copy the below code from the github README
    import React, { Component } from 'react'
    import { AppRegistry, StyleSheet, Text, View } from 'react-native'

import Swiper from 'react-native-swiper'

const styles = StyleSheet.create({
wrapper: {},
slide1: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#9DD6EB'
},
slide2: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#97CAE5'
},
slide3: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#92BBD9'
},
text: {
color: '#fff',
fontSize: 30,
fontWeight: 'bold'
}
})

export default class SwiperComponent extends Component {
render() {
return (


Hello Swiper


Beautiful


And simple


)
}
}

AppRegistry.registerComponent('myproject', () => SwiperComponent)
3.Modified as attached in AvatarSelectionScreen_BasicSwipte.txt
4. Yarn add react-native-swiper
5. Yarn start

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README swipe example and the attached AvatarSelectionScreen_BasicSwipe.txt, then follow the listed React Native setup steps to reproduce the export-property error. Done means the basic swipe example runs without this error on the reported Windows and React Native versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.