由于以下错误,我无法解析模块

时间:2018-06-06 05:50:55

标签: react-native

错误:捆绑失败:错误:无法从../../../.cache/typescript/2.6/node_modules/@types/prop-types解析模块/../../../../../sample.js:找不到模块../../../.cache/typescript/2.6/node_modules/@types/prop-types

1 个答案:

答案 0 :(得分:0)

这是来自sample.js页面上的import语句的问题

从'../../../ .cache/typescript/2.6/node_modules/@types/prop-types'

导入{array}