模块解析失败:意外的令牌?

时间:2020-09-15 21:37:55

标签: reactjs react-native expo

当我尝试运行我的expo项目时,它显示出如下错误:

Module parse failed: Unexpected token (13:12)
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
| } from 'react-native'
| import { isIphoneX } from 'react-native-iphone-x-helper'
> import type { KeyboardAwareInterface } from './KeyboardAwareInterface'
|
| const _KAM_DEFAULT_TAB_BAR_HEIGHT: number = isIphoneX() ? 83 : 49

不确定这是从哪里来的,因为我所做的只是通过运行expo init来设置expo项目并安装一些依赖项npm i

0 个答案:

没有答案