react-native-ui-kitten icon indicating copy to clipboard operation
react-native-ui-kitten copied to clipboard

ERROR in ./node_modules/react-native/index.js: Module parse failed: Unexpected token

Open belaziv opened this issue 3 years ago • 1 comments

🐛 Bug Report

I'm trying to use the library for my react native WEB app I run it with webpack + babel but I get the following error:

ERROR in ./node_modules/react-native/index.js 14:7
Module parse failed: Unexpected token (14:7)
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
| 
| // Components
> import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
| import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
| import typeof Button from './Libraries/Components/Button';
 @ ./node_modules/@ui-kitten/components/ui/autocomplete/autocomplete.component.js 12:23-46
 @ ./node_modules/@ui-kitten/components/ui/index.js 3:31-79
 @ ./node_modules/@ui-kitten/components/index.js 7:9-24
 @ ./src/index.tsx 5:0-74 8:42-48 14:38-42 20:42-61

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Link to runnable example or repository (highly encouraged)

https://github.com/belaziv/RN-WEB-EX

UI Kitten and Eva version

Package Version
@eva-design/eva ^2.1.1
@ui-kitten/components ^5.1.1

Environment information

  System:
    OS: Linux 5.11 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
  Binaries:
    Node: 16.13.1 - /usr/local/bin/node
    Yarn: 1.22.15 - /snap/bin/yarn
    npm: 8.1.2 - /usr/local/bin/npm
  npmPackages:
    react: ^17.0.2 => 17.0.2 
    react-native: ^0.66.4 => 0.66.4 

belaziv avatar Dec 30 '21 13:12 belaziv

i have same issue

sergeushenecz avatar Mar 12 '22 05:03 sergeushenecz