0

我收到此错误 -

https://forums.expo.dev/t/expo-start-web-failed-to-compile-after-import-native-base/40826

我通过他们的解决方案解决了这个问题,但现在我遇到了另一个错误。这个

Web Bundling complete 1832ms
./app/custom/FilterAutoComplete.js:16:22
"export 'ViewPropTypes' (imported as 'RNViewPropTypes') was not found in 'react-native-web/dist/index'
  14 | } from "react-native-responsive-screen";
  15 | 
> 16 | const ViewPropTypes = RNViewPropTypes || View.propTypes;
     |                      ^
  17 | // const ViewPropTypes = View.propTypes;
  18 | 
  19 | class FilterAutoComplete extends Component {
./node_modules/react-native-check-box/index.js:21:22
"export 'ViewPropTypes' (imported as 'RNViewPropTypes') was not found in 'react-native-web/dist/index'
  19 | import PropTypes from 'prop-types';
  20 | 
> 21 | const ViewPropTypes = RNViewPropTypes || View.propTypes;
     |                      ^
  22 | //const ViewPropTypes = View.propTypes;
  23 | 
  24 | export default class CheckBox extends Component {

请帮忙谢谢。

4

0 回答 0