30-days-of-react-native icon indicating copy to clipboard operation
30-days-of-react-native copied to clipboard

运行报错.

Open shaoting0730 opened this issue 7 years ago • 12 comments

npm 启动到99%时,报错:

请问这是何故? 2017-06-12 3 16 57

shaoting0730 avatar Jun 12 '17 07:06 shaoting0730

@pheromone 我的错误和你一模一样,请问怎么解决的

charlesYun avatar Jun 15 '17 06:06 charlesYun

无解 @caoyunxiao

shaoting0730 avatar Jun 15 '17 06:06 shaoting0730

@pheromone 同问 。。。

mf168 avatar Jun 16 '17 02:06 mf168

我是把node_modules\react-native-scrollable-tab-view\DefaultTabBar,ScrollableTabBar,index里面的ViewPropTypes改成了View.propTypes,不知道这样对不对

bighanber avatar Jun 16 '17 03:06 bighanber

@bighanber 请问这样改可以运行吗?

shaoting0730 avatar Jun 16 '17 03:06 shaoting0730

@pheromone 反正没报错了,但是里面的内容很奇怪

bighanber avatar Jun 16 '17 03:06 bighanber

hi, guys, flow these: Step1 cd node_modules\react-native-scrollable-tab-view, change ViewPropTypes to View.propTypes in DefaultTabBar, ScrollableTabBar and index Step2 npm install --save [email protected] if you have any other questions, please use node v5.2.0 or higher version(nvm could perfectly resolve it). Enjoy it!

AlsaceGH avatar Jun 21 '17 03:06 AlsaceGH

@AlsaceGH 按上述步骤操作后 ,还提示:Unrecognized font family "ionicons"

参考:https://github.com/oblador/react-native-vector-icons#option-manually 在xcode工程中把字体拖到相应目录下~ ok~

yatessss avatar Jun 22 '17 09:06 yatessss

还是不能解决呀

PengJuWang avatar Jun 23 '17 03:06 PengJuWang

@AlsaceGH it does not work

DevaLee avatar Jun 27 '17 01:06 DevaLee

I follow @AlsaceGH suggestion, and use "npm install [email protected]“ from 0.6.0. succeed.(android 6.0) this blog http://blog.csdn.net/xcx0215/article/details/72221602

按照AlsaceGH的步骤,改掉驼峰写法。再把插件版本升高。应该就可以了。如果期间出现不能发现某某字体,ttf结尾的。就把react-native-vector-icons这个包下的fonts字体放在提示错误的地方。

rzdong avatar Jun 29 '17 09:06 rzdong

参照@yatessss的方案解决了,虽然会有warning,但是终于不报红了。。。

emilyzfive avatar Jul 04 '17 10:07 emilyzfive