Skip to content
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

Parse Error for React Native Elements -- Unexpected Tokens #164

Open
mohannva opened this issue Feb 20, 2022 · 0 comments
Open

Parse Error for React Native Elements -- Unexpected Tokens #164

mohannva opened this issue Feb 20, 2022 · 0 comments

Comments

@mohannva
Copy link

mohannva commented Feb 20, 2022

There are unexpected errors (assumedly related to webpack and babel) that are causing parse errors when importing react native components:

./node_modules/react-chat-elements/native/ChatItem/ChatItem.js 16:12
Module parse failed: Unexpected token (16:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     render() {
|         return (
>             <View
|                 style={styles.rceContainerCitem}
|                 onClick={this.props.onClick}
./node_modules/react-chat-elements/native/MessageBox/MessageBox.js 29:12
Module parse failed: Unexpected token (29:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
|         return (
>             <View
|                 style={styles.rceContainerMbox}
|                 onClick={this.props.onClick}>
./node_modules/react-chat-elements/native/MessageList/MessageList.js 50:12
Module parse failed: Unexpected token (50:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     render() {
|         return (
>             <ScrollView
|                 ref={this.loadRef.bind(this)}
|                 style={styles.rceContainerMlist}>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant