react-native-text-area icon indicating copy to clipboard operation
react-native-text-area copied to clipboard

Failed to compile

Open bbrother92 opened this issue 3 years ago • 5 comments

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 avatar Jul 22 '21 00:07 bbrother92

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
}

bbrother92 avatar Jul 22 '21 00:07 bbrother92

@bbrother92 Did you already find a solution for this?

How does your actual import look like?

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

bbrother92 avatar Oct 06 '21 20:10 bbrother92

@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?

@bbrother92 Are you still having this issue?

WrathChaos avatar Dec 06 '21 17:12 WrathChaos