安装 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 中正确加载。
关于它可能是什么的任何提示?
谢谢各位!