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

Ilo*_*nov 0 bundle reactjs react-native

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

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
Run Code Online (Sandbox Code Playgroud)

我的包裹卡在中间了。

可能是什么问题?

mth*_*ong 5

我通过转到node_modules/core-js/modules/$.html.js并复制+重命名$.html.js来解决了我的问题$.html

它将解决您的问题。

在此输入图像描述