reactjs – [Flow] react-native:找不到所需的模块
发布时间:2020-12-15 20:44:03 所属栏目:百科 来源:网络整理
导读:.flowconfig ...[libs]node_modules/react-native/Libraries/react-native/react-native-interface.jsnode_modules/react-native/flowflow/... index.js import { View } from 'react-native'; --- produce: react-native. Required module not found.... 也
.flowconfig
... [libs] node_modules/react-native/Libraries/react-native/react-native-interface.js node_modules/react-native/flow flow/ ... index.js import { View } from 'react-native'; ---> produce: react-native. Required module not found. ... 也许我的flowconfig的libs设置坏了?
这是一个快速的解决方案,可以让我忽略react-native的与流相关的错误
>转到项目目录 cd my-awesome-project mkdir flow-typed touch react-native.js 声明模块’react-native'{declare module.exports:any;} (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |