我正在尝试将我现有的 React Native 应用程序转换为 React Native Web。我已经解决了一堆与加载器和 webpack 相关的错误,但现在我陷入了这个错误
ERROR in ./node_modules/react-native-material-textfield/src/components/field-outlined/index.js 58:6
Module parse failed: Unexpected token (58:6)
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
|
| return (
> <Outline {...props} labelWidth={labelWidth} />
| );
| }
@ ./node_modules/react-native-material-textfield/index.js 3:0-64 5:0-57
@ ./src/components/react-native-material-dropdown/src/components/dropdown/index.js 47:0-60 429:46-55 445:46-55
@ ./src/components/react-native-material-dropdown/index.js 1:0-49 2:0-20
@ ./src/pages/LocalityFactPage.js 151:0-72 410:42-50
@ ./src/navigation/NavigationStack.js 44:0-59 87:20-36
@ ./src/navigation/index.js 178:0-48 563:63-78
@ ./App.web.js 39:0-41 167:42-51
@ ./index.web.js 5:0-28 7:9-12