Reactjs 绑定失败:错误:无法解析模块`./$.html`

Reactjs 绑定失败:错误:无法解析模块`./$.html`,reactjs,react-native,bundle,Reactjs,React Native,Bundle,我尝试运行我的项目,但出现以下错误: 绑定失败: Error: Unable to resolve module `./$.html` from `/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/core-js/modules/es5.js`: The module `./$.html` could not be found from `/Safee/sf-code/sf-safee-clients/sf-client-

我尝试运行我的项目,但出现以下错误: 绑定失败:

Error: Unable to resolve module `./$.html` from `/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/core-js/modules/es5.js`: The module `./$.html` could not be found from `/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/core-js/modules/es5.js`. Indeed, none of these files exist:

  * `$.html`
  * `/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/core-js/modules/$.html/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json)`
    at ModuleResolver.resolveDependency (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:161:851)
    at ResolutionRequest.resolveDependency (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:91:16)
    at DependencyGraph.resolveDependency (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph.js:272:4579)
    at dependencies.map.relativePath (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:376:19)
    at Array.map (<anonymous>)
    at resolveDependencies (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:374:16)
    at /Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:212:33
    at Generator.next (<anonymous>)
    at step (/Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:313)
    at /Safee/sf-code/sf-safee-clients/sf-client-mobile/node_modules/react-native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:473
错误:无法从“/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node\u-modules/core-js/modules/es5.js”解析模块“./$.html”:无法从“/Safee/sf-Safee-clients/sf-client-mobile/node\u-modules/core-js/modules/es5.js”中找到模块“./$.html”。事实上,这些文件都不存在:
*`$.html`
*`/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node|modules/core js/modules/$.html/index(.native | android.js |.native.js |.js |.android.json |.native.json | json)`
在ModuleResolver.resolveDependency(/Safee/sf code/sf Safee clients/sf client mobile/node_modules/react native/node_modules/metro/src/node haste/DependencyGraph/ModuleResolution.js:161:851)
在ResolutionRequest.resolveDependency(/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node\u-modules/react-native/node\u-modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:91:16)
在DependencyGraph.resolveDependency(/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node\u-modules/react-native/node\u-modules/metro/src/node-haste/DependencyGraph.js:272:4579)
在dependencies.map.relativePath(/Safee/sf code/sf Safee clients/sf client mobile/node_modules/react native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:376:19)
在Array.map()处
在resolveDependencies(/Safee/sf code/sf Safee clients/sf client mobile/node_modules/react native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:374:16)
at/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node_-modules/react-native/node_-modules/metro/src/DeltaBundler/traverseDependencies.js:212:33
在Generator.next()处
在步骤(/Safee/sf code/sf Safee clients/sf client mobile/node_modules/react native/node_modules/metro/src/DeltaBundler/traversedependences.js:297:313)
at/Safee/sf-code/sf-Safee-clients/sf-client-mobile/node_-modules/react-native/node_-modules/metro/src/DeltaBundler/traversedependences.js:297:473
我的包扎在中间。


问题出在哪里?

我已通过转到
节点\u modules/core js/modules/$.html.js
并将
$.html.js
复制并重命名为
$.html

它会解决你的问题


我通过转到
节点\u modules/core js/modules/$.html.js
并将
$.html.js
复制+重命名为
$.html

它会解决你的问题


添加与问题相关的最小代码。你是如何使用它的,你是否与webpack捆绑在一起?如果是,请添加我正在使用的iTerm的相关代码。您可以在这里找到更多代码:添加问题的回溯。不要链接到其他网站。@HåkenLid我用精确的错误编辑了我的问题,添加了与问题相关的最小代码。你是如何使用它的,你是否与webpack捆绑在一起?如果是,请添加我正在使用的iTerm的相关代码。您可以在这里找到更多代码:添加问题的回溯。不要链接到其他网站。@HåkenLid我用“精确错误”编辑了我的问题,很酷,也为我工作过。但这很奇怪很酷,对我来说也很有用。但这很奇怪