项目建立后报Error while persisting cache: TransformError:求帮助



  • transforming [========================================] 100% 399/400Error while persisting cache: TransformError: /Users/zzx/MyProject/node_modules/react-deep-force-update/lib/index.js: [BABEL] /Users/zzx/MyProject/node_modules/react-deep-force-update/lib/index.js: Unknown option: /Users/zzx/MyProject/node_modules/react-deep-force-update/.babelrc.stage


  • administrators

    看求助区置顶帖第一段



  • 这个错误我也不知道为什么,ios也遇到了。
    删除报错的react-deep-force-update/.babelrc.stage这个文件,看好路径。

    有知道原因的,帮忙解答


  • administrators

    @jszjlb 因为React Native升级了babel6,babel6对babelrc文件的解析有变更,而其他第三方组件还没有跟上这个变化。



  • @watchman 说:

    babelrc.stage

    我在哪个目录下找不到这个文件啊



  • @sunnylqm 说:

    babel6,babel6

    那怎么解决啊 我把NODE 版本换一个么?



  • @jszjlb 解决了 用命令把那个文件删除了就可以了 谢谢



  • @watchman
    删了哪个文件? 我也遇到了这个错误。


  • administrators

    @han4wluc 看求助区置顶帖第一段



  • 此回复已被删除!


  • 删除/Users/zzx/MyProject/node_modules/react-deep-force-update/.babelrc 然后重启就解决了



  • @qinzhzen 说:

    删除/Users/zzx/MyProject/node_modules/react-deep-force-update/.babelrc 然后重启就解决了

    :heart:



  • 正好今天也碰到这个问题,分享下:
    =======
    原因:
    新版本用的是babel 6版本,可是有些依赖的库并不是这个版本,就会导致这个错,所以解决方案就是把这个所以babel删了,升级依赖。

    解决:

    1,先删除依赖包:
    
        rm -rf node_modules
        ncu -u
        npm install
    
    2,修改package.json文件 
    
        "scripts": {
          "clean:babelrc": "find ./node_modules -name react-packager -prune -o -name '.babelrc' -print | xargs rm -f",
          "postinstall": "npm run clean:babelrc"
        }


  • @hjm201 正解



  • @alex 如何做呢?求详细!



  • @alex

    我怎么没有找到babelrc.stage ,这个文件。跪求帮助0_1455019236881_2016年2月9日 08-00-22.png


  • EnTt%-" datfa fsser-,>EnTs EnTline.98rname=temtype="http://schema.org/Comment">
    spursy
    EnTline.98rnam"2016-02-09T12:00:54.753Z"> 61mall data-editor="" component="onent="uditor" class="hidden">last edited by
    <)都"co默认隐藏/spsmalmark-o"sss=rmark-o"


  • spursy
    62mall data-editor="" component="post/editor" class="hidden">last edited by

    0 scomponent="post/r/spursy"> ment"> ck" -ma che-transforhiddl> ma载更多帖子span> ll data-editor="" freshor="spi href="#" c 帖子spacomponent="postsment"> 浏览an component="post/toment"> poin Bbarost/vote-coun>fa-pencil-squaprion y"a fa-chevronock" s" compo 08-00-2tor" clasun>0 019237229-2016%E5casst"t="post/pa -2tor" clasunclass=""> cpo 新帖中 08-00-22.dropd登录" d 08-00-22.pn="fa fa-circ="fa fant="postst="postshr/er/spursy"> > ment"> ine" title> pagiaa> Bbleft"/i> -ce href="#" cla fa fa-pen/i> -ce Bass=a -agiaa> fa01923op文件%reviouscomponent= disa l="/topiccircle op文件ni> =ompones/14 disa ment"> st/est/vy所nenu-ri/i> /tpldata-votreplatitl5comptoment"> alert alert-dan= c/a ture" dat内部
    re" datsmall>呀
    ment"> ck" -shemchost/vote-cou oment"> poin >-2tor" clasu > @ alert-w owstclass="tefmg 所osts require(['forum/fo r']);{"tid":325,"uid":671,"cid":2,"ma pursy E : spursy pursy E : a> [========================================] 100% 399/400E 746"> pursy E : /small>



    <<\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fs="tprop:"e," cuta> f:0,%B9%uote" :21,"ba ndat:false,f ":1499332654571,"perm:/i> @:"W","perm:bgC @:"#ff5722"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fs="t ,fmpo#336":"","sigaa>prop:"e," cuta> f:39,%B9%uote" :1436,"ba ndat:false,f ":1511010507629,"perm:/i> @:"="i","perm:bgC @:"#eta it"," ","permp:"e,or: T" ti":"atus offline" t},cuorom_4:18:43_info":[]},favouri dat:false,ftools"dh:false,f=> at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ btn-d\n
    , fa好路径 /> \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fs="tprop:"e," cuta> f:0,%B9%uote" :3,"ba ndat:false,f ":1456565401820,"perm:/i> @:"J","perm:bgC @:"#ff5722"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \
    @jszjlb \ N /div> /sp解析k-o变更,<其 还mark-o跟丩也碰变化 /> \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">347","s="t ,fmpo#336":"","sigaa>prop:"e," cuta> f:39,%B9%uote" :1436,"ba ndat:false,f ":1511010507629,"perm:/i> @:"="i","perm:bgC @:"#eta it"," ","permp:"e,or: T" ti":"atus offline" t},cuorom_4:18:43_info":[]},favouri dat:false,ftools"dh:false,f=> at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \
@bookmark \ <<\ /div> 啊 \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">347","s="tprop:"e," cuta> f:0,%B9%uote" :21,"ba ndat:false,f ":1499332654571,"perm:/i> @:"W","perm:bgC @:"#ff5722"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ 么? \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">350","s="tprop:"e," cuta> f:0,%B9%uote" :21,"ba ndat:false,f ":1499332654571,"perm:/i> @:"W","perm:bgC @:"#ff5722"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \
@jszjlb \ mark-o"a那 /div>
就可以">
\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">347","s="tprop:"e," cuta> f:0,%B9%uote" :21,"ba ndat:false,f ":1499332654571,"perm:/i> @:"W","perm:bgC @:"#ff5722"," at:false,f elfP"> :false,f=isplay_an compon_
:false,f=isplay_anve_ :false,f=isplay_%B9%_ \
@bookmark \哪nt"/div> ? 我也遇到ent" item
\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">359","s="tprop:"e," cuta> f:0,%B9%uote" :1,"ba ndat:false,f ":1454301120327,"perm:/i> @:"H","perm:bgC @:"#eta it"," at:false,f elfP"> :false,f=isplay_an compon_
:false,f=isplay_anve_ :false,f=isplay_%B9%_ \ @han4wluc \ \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">363","s="t ,fmpo#336":"","sigaa>prop:"e," cuta> f:39,%B9%uote" :1436,"ba ndat:false,f ":1511010507629,"perm:/i> @:"="i","perm:bgC @:"#eta it"," ","permp:"e,or: T" ti":"atus offline" t},cuorom_4:18:43_info":[]},favouri dat:false,ftools"dh:false,f=> at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:true,fsoPid":">350","s="tprop:"e," cuta> f:0,%B9%uote" :4,"ba ndat:false,f ":1508222561>34,"perm:/i> @:"Q","perm:bgC @:"#2196f3"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_

\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fs="tprop:"e," cuta> f:0,%B9%uote" :4,"ba ndat:false,f ":1508222561>34,"perm:/i> @:"Q","perm:bgC @:"#2196f3"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ er/spursy\ \

\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">374","s="tAAprop:"e," cuta> f:0,%B9%uote" :1,"ba ndat:false,f ":1495621727516,"perm:/i> @:"A","perm:bgC @:"#e651g>"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_
<\npan class="bookmarked">

正好今天也碰到这个问题,分享下:
\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fs="tprop:"e," cuta> f:0,%B9%uote" :3,"ba ndat:false,f ":1462784051209,"perm:/i> @:"H","perm:bgC @:"#eta it"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \

f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">386","s="tAi,for: ss="":";">Ae,fitemprop:"e,fmpo#336":"","sigaa>prop:"e," cuta> f:0,%B9%uote" :2,"ba ndat:false,f ":14987256s196s,"perm:/i> @:"A","perm:bgC @:"# at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \ A\marked">\\ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">459","s="tAe},for: ":{"or: #336":"e;">SSprop:"e," cuta> f:0,%B9%uote" :3,"ba ndat:false,f ":1455115>38924,"perm:/i> @:"S","perm:bgC @:"#eta it"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \ A\marked">\
S<\5"@onent="\use 所k-o小数点开头/spa> f:0,l-righ:0,isting-:{"or: #336":"="image,for: ss="":"="image,fuid":3},istidat:1455033120989,f="#" dat:false,fsoPid":">461","s="tEnTline.98rna, S ,fmpo#336":"","sigaa>prop:"e," cuta> f:39,%B9%uote" :1436,"ba ndat:false,f ":1511010507629,"perm:/i> @:"="i","perm:bgC @:"#eta it"," ","permp:"e,or: T" ti":"atus offline" t},cuorom_4:18:43_info":[]},favouri dat:false,ftools"dh:false,f=> at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ \ f:0,l-righ:0,isting-:nmpo,istidat:0,f="#" dat:false,fsoPid":">462","s="tSSprop:"e," cuta> f:0,%B9%uote" :3,"ba ndat:false,f ":1455115>38924,"perm:/i> @:"S","perm:bgC @:"#eta it"," at:false,f elfP"> :false,f=isplay_an compon_ :false,f=isplay_anve_ :false,f=isplay_%B9%_ N ","c @:"#ffft,f s="":"2/讨论区",flass="Ciat:0,f ck" _uote" :1070,%B9%_uote" :3523,f=isa N Cote" :3523,fsotalTck" Cote" :1070},th" ad_ :[], s :[],isFollowi"> :false,fbutton c":nmpo,unrepliidh:false,frelatid :[],b" adcrumbs":[{f/i> @:"[[global:home]]",surlp:"n"},{f/i> @:"讨论区",furlp:"ncategory/2/讨论区"},{f/i> @:"="backgrursy" dataE 746"> pursy E : gigh:{f ck" s:" comp:false,freaat:true,finew_th" ad_ :false,fistia :=isa :=isa :true,frssFeedUrlp:"nock" styl.rss",flagiaa> f:{f%rev :{f%odif:1,"ac> vs :false},ni> @:{f%odif:1,"ac> vs :false},rel :[],%odis :[],curss="Podif:1,"%odiCote" :1},"reggdaInh:false,frelat vs_pathi:"e,treplatih:{"#336":"i> cp,tck" /:true},"bodyCpursi:"%odi/i> c %odi/i> c-tyl %odi/i> c-%E9%A1emprE7%9B%AE itemB%BArE7%AB%8B ite90%8E

<8Acla-uid="746">spursy