编译失败 - Expo Web - 安装后 UI-Kitten
Failed to Compile - Expo Web - After installing UI-Kitten
安装 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 中正确加载。
关于它可能是什么的任何提示?
谢谢大家!
这是我们的错,我们会尽快修复它。此问题存在于 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 = () => {
安装 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 中正确加载。
关于它可能是什么的任何提示?
谢谢大家!
这是我们的错,我们会尽快修复它。此问题存在于 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 = () => {