【问题标题】:Failed to Compile - Expo Web - After installing UI-Kitten编译失败 - Expo Web - 安装 UI-Kitten 后
【发布时间】:2019-12-10 19:50:41
【问题描述】:

安装 UI-Kitten 并将其应用到我的 App.js 后,我开始收到以下错误消息:


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) => {

我已经查看了 card.component.js,它似乎没问题。此外,它看起来不适用于除 javascript 之外的任何其他文件,我认为应该在 expo web 中正确加载。

关于它可能是什么的任何提示?

谢谢各位!

【问题讨论】:

    标签: javascript react-native expo aws-amplify react-native-ui-kitten


    【解决方案1】:

    这是我们的错,我们会尽快修复它。 github上有问题

    【讨论】:

    • 嘿,我在 github 上没有找到与此相关的问题。是否已解决或正在开发中?需要帮忙? :)
    • @PawełSmołka 已在 4.3.2 中解决并公开
    【解决方案2】:

    这里也一样:

    /mnt/f/WORK/React/bridge2/react-tv-client/node_modules/@ui-kitten/components/ui/input/input.component.js 105:38
    Module parse failed: Unexpected token (105:38)
    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.webEventResponder = devsupport_1.WebEventResponder.create(this);
    |         this.focus = () => {
    >             this.textInputRef.current?.focus();
    |         };
    |         this.blur = () => {
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-10
      • 1970-01-01
      • 2012-11-23
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      • 2014-06-01
      • 2014-06-23
      相关资源
      最近更新 更多