编译失败 - 世博会网络 - 安装 UI-小猫后



安装 UI-Kitten 并将其应用于我的应用程序后.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 中正确加载。

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

谢谢大家!

这是我们的错,我们很快就会修补它。问题存在于 github 上

这里也一样:

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

最新更新