看起来 Expo Webpack 没有可选链接。
当我尝试将UI Kitten安装到 Expo Web 应用程序时,我发现了这一点。
这是我将 UI Kitten 添加到新创建的 Expo 应用程序后的编译错误
node_modules/@ui-kitten/components/ui/input/input.component.js 104:38
Module parse failed: Unexpected token (104: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 = () => {
Deps 版本(目前我在这里写的最新版本。)
expo@37.0.6
@ui-kitten/components@5.0.0-alpha.1
有什么技巧可以解决这个问题吗?