WrathChaos / react-native-text-area

Simple and easy to use TextArea for React Native.
https://www.freakycoder.com
25 stars 6 forks source link

Failed to compile #70

Open bbrother92 opened 3 years ago

bbrother92 commented 3 years ago

Got this error when trying to use the component node_modules/@freakycoder/react-native-text-area/build/dist/RNTextArea.js 20:16


Module parse failed: Unexpected token (20:16)
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
|         if (!maxCharLimit)
|             return null;
>         return (<react_native_1.Text style={[
|             RNTextArea_style_1._charCountStyle(charCount > maxCharLimit ? exceedCharCountColor : charCountColor),
|             maxCharTextStyle, ```
bbrother92 commented 3 years ago

my package json:

{
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "react-native start"
  },
  "dependencies": {
    "@freakycoder/react-native-text-area": "^0.1.4",
    "expo": "~41.0.1",
    "expo-splash-screen": "~0.10.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.5.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-reanimated": "~2.1.0",
    "react-native-screens": "~3.0.0",
    "react-native-unimodules": "~0.13.3",
    "react-native-web": "~0.13.12"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0"
  },
  "private": true
}
mariomurrent-softwaresolutions commented 3 years ago

@bbrother92 Did you already find a solution for this?

How does your actual import look like?

bbrother92 commented 3 years ago

@mariomurrent-softwaresolutions idk maybe its because Iam using create-react-native-app

mariomurrent-softwaresolutions commented 3 years ago

@mariomurrent-softwaresolutions idk maybe its because Iam using create-react-native-app

Hmmm but where are you using it in the code? Or are you just trying to do an npm install?

WrathChaos commented 2 years ago

@bbrother92 Are you still having this issue?