0

安装 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.xml 中正确加载。

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

谢谢各位!

4

2 回答 2

1

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

于 2019-12-13T07:30:42.033 回答
1

同样在这里:

/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 = () => {
于 2021-07-29T13:54:00.837 回答