Search code examples
javascriptreact-nativeexpoaws-amplifyreact-native-ui-kitten

Failed to Compile - Expo Web - After installing UI-Kitten


After installing UI-Kitten and applying it to my App.js, I started to have this error message:


Failed to compile
/home/ubuntu/environment/node_modules/@ui-kitten/components/ui/card/card.component.js 104:20
Module parse failed: Unexpected token (104:20)
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
|         };
|         this.renderDivider = () => {
>             return (<Divider />);
|         };
|         this.renderHeader = (headerStyles) => {

I already looked into card.component.js and it seems to be fine. Also it doesn't look like it works with any other files other than javascript, which I think should load correctly in expo web.

Any hints on what it could possibly be?

Thanks folks!


Solution

  • That's our fault and we're going to patch it soon. The issue exists on github