You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."

前端 未结 5 1896
独厮守ぢ
独厮守ぢ 2021-02-05 11:02

I\'m setting up webpack to my react project using yarn and this error appears:

ERROR in ./src/app.js 67:6 Module parse failed: Unexpected token (67:6) Y

5条回答
  •  一个人的身影
    2021-02-05 11:15

    web Failed to compile.
    /KeyboardAwareHOC.js 13:12
    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 3
    | } 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
    

    install the below package and restart your expo package.

    https://www.npmjs.com/package/@codler/react-native-keyboard-aware-scroll-view

提交回复
热议问题