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

Failed to compile #70

Open
bbrother92 opened this issue Jul 22, 2021 · 5 comments
Open

Failed to compile #70

bbrother92 opened this issue Jul 22, 2021 · 5 comments

Comments

@bbrother92
Copy link

bbrother92 commented Jul 22, 2021

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
Copy link
Author

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
Copy link
Contributor

mariomurrent-softwaresolutions commented Oct 5, 2021

@bbrother92 Did you already find a solution for this?

How does your actual import look like?

@bbrother92
Copy link
Author

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

@mariomurrent-softwaresolutions
Copy link
Contributor

@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
Copy link
Owner

@bbrother92 Are you still having this issue?

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

3 participants