При сборке react-native-web
появляется следующая ошибка:
ERROR in ./node_modules/react-native-vector-icons/lib/create-icon-set.js 43:21
Module parse failed: Unexpected token (43:21)
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
|
| class Icon extends PureComponent {
> static propTypes = {
| allowFontScaling: PropTypes.bool,
| name: IconNamePropType,
@ ./node_modules/react-native-vector-icons/AntDesign.js 6:0-50 9:16-29
@ ./src/containers/news/index.js
@ ./src/App.js
@ ./src/index.js
И у меня есть этот раздел в .babelrc
файле
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript",
"module:metro-react-native-babel-preset"
],
"plugins": [
["module-resolver", {
"alias": {
"^react-native$": "react-native-web"
}
}],
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
Может кто-нибудь помочь?