简体   繁体   English

react-native链接-超出最大调用堆栈大小

[英]react-native link - Maximum call stack size exceeded

Following the Documentation of rnfirebase.io Having this error when try to link the installed package. 按照rnfirebase.io的文档进行操作尝试链接已安装的软件包时出现此错误。

react-native link react-native-firebase

Scanning folders for symlinks in /PROJ-DIR/node_modules (45ms) rnpm-install ERR! 扫描文件夹中的/ PROJ-DIR / node_modules中的符号链接(45ms)rnpm-install ERR! Something went wrong while linking. 链接时出了点问题。 Error: Maximum call stack size exceeded 错误:超出最大呼叫堆栈大小

There was already an issue raised against this here but solutions are based on a problem with Xcode. 此处已经对此提出了一个问题,但是解决方案基于Xcode的问题。 I'm not working for ios yet. 我还没有为ios工作。 A solution regarding android is not working too. 关于android的解决方案也不起作用。

Can anyone help me with this? 谁能帮我这个?

Try removing your android and ios folders and use following commands: 尝试删除您的android和ios文件夹,并使用以下命令:

1. react-native eject to recreate android and ios folders. 1. react-native弹出以重新创建android和ios文件夹。

2. react-native upgrade Be careful while running this command because it will replace your configuration files. 2. react-native升级运行此命令时请小心,因为它将替换您的配置文件。

3.Finally react-native link 3.最终反应-本机链接

Many a times i too get this error and I follow these steps to overcome. 很多次我也遇到这个错误,我按照以下步骤来克服。 Take a look at this link 看看这个链接

Make sure is there any unwanted changes are done in ios's project file. 确保在ios的项目文件中进行了所有不需要的更改。 if yes then revert back as it is. 如果是,则恢复原状。

I faced this error after merging two branch and i have accepted both changes and got error and fixed it by proper merging 合并两个分支后,我遇到了这个错误,我接受了两个更改并得到了错误,并通过适当的合并来修复它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM