无法解析模块...在急速模块图中不存在 [英] Unable to resolve module...does not exist in the haste module map

查看:75
本文介绍了无法解析模块...在急速模块图中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ReactNative的初学者,我正在创建一个Twitter克隆进行练习.

I am a beginner on ReactNative, I am creating a Twitter clone to practice.

我已经开发了第一个应用程序,没有问题.

I had already developed a first application and I had no problem.

但是自从我开始新项目以来,在项目中添加了自定义模块后,我收到了此错误消息.

But since I started the new project, after adding custom modules in the project I have this error message.

在这种情况下,我想将样式表导入到自定义的Tweet组件中,我添加了一个捕获,这对您来说更好.

In this case I want to import a style sheet into my custom Tweet component, I added a capture, it's better for you.

截图-错误消息

因此,我遵循了捕获的所有说明,但Watchmen除外,因为我在Windows 10上工作,完成此过程之后,我用"react-create-app"重新创建了一个新项目,重新启动XDE expo和应用程序但是问题又回来了...

So, I followed all the instructions of the capture, except Watchmen because I'm working on Windows 10, after doing the procedure, I recreated a new project with "react-create-app", restart XDE expo and the application but the problem comes back ...

我还在这里尝试了处理该问题的Github过程(请参见问题所在)=>

I also tried the Github procedure dealing with the problem (see the catch for the issue) here => https://github.com/facebook/react-native/issues/4968

推荐答案

只需按照以下步骤再次进行

Simply follow again below steps

yarn add react-native-tweet-view
react-native link react-native-tweet-view

这篇关于无法解析模块...在急速模块图中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆