【发布时间】:2022-01-11 12:05:43
【问题描述】:
我正在开发 React Native 应用程序。我正在运行 yarn 和 expo 进行模拟。我已经安装了所有要求,并且据我所知,代码似乎是正确的。但是我收到了终端错误,因此我看不到我的应用程序并且只显示为空白。
我在终端运行 yarn 然后按 w 获取网站版本时出现以下错误:
我做了:yarn start -> penter code hereressed w 查看 webapp:
› Webpack waiting on http://127.0.0.1:19006
› Expo Webpack (web) is in beta, and subjectto breaking changes!
Web Bundling complete 9367ms
./node_modules/react-native-maps/index.js:24
"export 'Animated' was not found in './lib/components/MapView'
22 |
23 | export { Marker, Overlay };
24 | export { Animated, MAP_TYPES, ProviderPropType };
25 |
26 | export const PROVIDER_GOOGLE = MapView.PROVIDER_GOOGLE;
27 | export const PROVIDER_DEFAULT = MapView.PROVIDER_DEFAULT;
./node_modules/react-native-maps/lib/components/MapMarker.js:79:12
"export 'ColorPropType' was not found in 'react-native-web/dist/index'
77 | * which can be customized by this color. Ignored if a custom marker is being used.
在这种情况下我该怎么办,因为我得到一长串错误说出口没有找到像上面虽然我有它。
【问题讨论】:
标签: javascript android node.js reactjs react-native