How can I resolve this error?

#1

Unable to resolve ./components/facebookButton" from “.//app/screens/login.js: could not resolve/Users/justinj/Desktop/newFOLDER/appnow/app/screens/components/facebookButton’ as a file nor as a folder”,“name”:“UnableToResolveError”,“type”:“UnableToResolveError”,“errors”:[{}]},“type”:“bundling_error”}"

0 Likes

#2

With the error alone, people will not be able to find out what the problem is. Please provide the login.js code.

0 Likes

#3

import React, {Component} from 'react’
import {View, StyleSheet} from 'react-native’
import FacebookButton from ‘./components/facebookButton’

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

<FacebookButton
onPress={() => console.log(‘facebook button’)}
/>

)
}
}

const styles = StyleSheet.create({
container: {
flex:1,
alignItems: ‘center’,
justifyContent: ‘center’,
},
})

0 Likes

#4

@newventurez really hard to tell what’s going on without the full code. If you put the whole project on https://snack.expo.io/ or github maybe someone can help you out.

1 Like

#5

Hello @newventurez, i run your application in my phone and there is no any bug it shows me. can you please tell me what actually happen in your output? thank you

0 Likes