javascript - 错误:错误:无法从`screens/index.js 解析模块`./contants/icons`
问题描述
[2021 年 4 月 20 日星期二 11:44:30.800] 捆绑包 ./index.js
错误:错误:无法./contants/icons
从以下位置解析模块screens/index.js
:
这些文件都不存在:
- 屏幕/内容/图标(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android .tsx|.native.tsx|.tsx)
- 屏幕/内容/图标/索引(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts| .android.tsx|.native.tsx|.tsx) 在 ModuleResolver.resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15) 在 ResolutionRequest。 resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) 在 DependencyGraph.resolveDependency (/Users/touseef/Downloads/NewAPP/node_modules/metro/src /node-haste/DependencyGraph.js:287:16) 在 Object.resolve (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/lib/transformHelpers.js:267:42) 在 /Users/touseef/Downloads /NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:434:31 在数组。map () 在 resolveDependencies (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:431:18) 在 /Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies .js:275:33 在 Generator.next () 在 asyncGeneratorStep (/Users/touseef/Downloads/NewAPP/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
解决方案
推荐阅读
- scala - 使用 Scala 消除 Spark 中的 for 循环
- heroku - 将 package.json 部署到 heroku 的原因是什么?
- javascript - 为什么第一个块停止执行(Uncaught TypeError),而第二个块没有(Uncaught (in promise) TypeError)?
- go - 如何访问在 GOHTML 模板中动态创建的行?
- python - 解释和理解时间序列数据的 fft 图
- php - DOMNode::isEqualNode():尚未实现
- javascript - MongoDB 禁用模式值
- python - Flask 应用程序不显示 CNN 的预测
- java - 使用rs2xml的JTable列显示问题
- docker - 针对 docker-in-docker (dind) 运行 docker-compose