开发微信小程序,编译完成后就出现这个错误了



  • Failed to load resource: the server responded with a status of 404 (Not Found)
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-borrow.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:212
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (my-borrow.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at my-borrow.js:1
    at require (WAService.js:1)
    at <anonymous>:212:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-borrow.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:212
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-share.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:218
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (my-share.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at my-share.js:1
    at require (WAService.js:1)
    at <anonymous>:218:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-share.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:218
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ id-auth.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:224
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (id-auth.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at id-auth.js:1
    at require (WAService.js:1)
    at <anonymous>:224:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ id-auth.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:224
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ wallet-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:230
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (wallet-detail.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at wallet-detail.js:1
    at require (WAService.js:1)
    at <anonymous>:230:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ wallet-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:230
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:236
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (book-detail.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at book-detail.js:1
    at require (WAService.js:1)
    at <anonymous>:236:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:236
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ share-borrow-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:242
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (share-borrow-detail.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at share-borrow-detail.js:1
    at require (WAService.js:1)
    at <anonymous>:242:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ share-borrow-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:242
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ familiar-site.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:248
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (familiar-site.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at familiar-site.js:1
    at require (WAService.js:1)
    at <anonymous>:248:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ familiar-site.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:248
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ borrow-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:254
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (borrow-detail.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at borrow-detail.js:1
    at require (WAService.js:1)
    at <anonymous>:254:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ borrow-detail.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:254
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ phone-change.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:260
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (phone-change.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at phone-change.js:1
    at require (WAService.js:1)
    at <anonymous>:260:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ phone-change.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:260
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ set-password.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:266
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (set-password.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at set-password.js:1
    at require (WAService.js:1)
    at <anonymous>:266:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ set-password.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:266
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ help.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:272
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at a.value (help.js:1)
    at Object.createComponent (index.js:1)
    at help.js:1
    at require (WAService.js:1)
    at <anonymous>:272:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ help.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:272
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-list.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:278
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (book-list.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at book-list.js:1
    at require (WAService.js:1)
    at <anonymous>:278:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-list.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:278
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ system-notice.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:284
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (system-notice.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at system-notice.js:1
    at require (WAService.js:1)
    at <anonymous>:284:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ system-notice.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:284
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ limit-activity.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:290
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (limit-activity.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at limit-activity.js:1
    at require (WAService.js:1)
    at <anonymous>:290:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ limit-activity.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:290
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ common-feed.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:296
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (common-feed.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at common-feed.js:1
    at require (WAService.js:1)
    at <anonymous>:296:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ common-feed.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:296
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ borrowable-site.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:302
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (borrowable-site.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at borrowable-site.js:1
    at require (WAService.js:1)
    at <anonymous>:302:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ borrowable-site.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:302
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ message.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:374
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (message.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at message.js:1
    at require (WAService.js:1)
    at <anonymous>:374:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ message.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:374
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ mine-list-item.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:416
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at s.value (mine-list-item.js:1)
    at Object.createComponent (index.js:1)
    at mine-list-item.js:1
    at require (WAService.js:1)
    at <anonymous>:416:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ mine-list-item.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:416
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-wallet.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:422
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (my-wallet.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at my-wallet.js:1
    at require (WAService.js:1)
    at <anonymous>:422:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ my-wallet.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:422
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-storehouse.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:428
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (book-storehouse.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at book-storehouse.js:1
    at require (WAService.js:1)
    at <anonymous>:428:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ book-storehouse.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:428
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ login.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:434
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (login.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at login.js:1
    at require (WAService.js:1)
    at <anonymous>:434:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ login.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:434
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ user-message.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:440
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (user-message.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at user-message.js:1
    at require (WAService.js:1)
    at <anonymous>:440:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ user-message.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:440
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给页面提供初始 state 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ buy-card.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:446
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at e.value (buy-card.js:1)
    at e.o._createData (index.js:1)
    at e.i._createData (index.js:1)
    at Object.createComponent (index.js:1)
    at buy-card.js:1
    at require (WAService.js:1)
    at <anonymous>:446:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ buy-card.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:446
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能!
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ swiper-tab-pager-view.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:452
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 TypeError: (0 , _index.genCompid) is not a function
    at a.value (swiper-tab-pager-view.js:1)
    at Object.createComponent (index.js:1)
    at swiper-tab-pager-view.js:1
    at require (WAService.js:1)
    at <anonymous>:452:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562047712488:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562047712488:4050)
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ swiper-tab-pager-view.js:1
    require @ WAService.js:1
    (anonymous) @ VM4251:452
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    VM4109:1 thirdScriptError
    sdk uncaught third Error
    module "npm/es5-ext/string/#/contains/index.js" is not defined
    Error: module "npm/es5-ext/string/#/contains/index.js" is not defined
    at require (http://127.0.0.1:42731/appservice/dev/WAService.js:1:1276948)
    at http://127.0.0.1:42731/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:42731/appservice/npm/d/index.js:1:635
    at require (http://127.0.0.1:42731/appservice/dev/WAService.js:1:1277089)
    at http://127.0.0.1:42731/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:42731/appservice/npm/event-emitter/index.js:1:509
    at require (http://127.0.0.1:42731/appservice/dev/WAService.js:1:1277089)
    at http://127.0.0.1:42731/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:42731/appservice/utils/emitter-util.js:1:522
    at require (http://127.0.0.1:42731/appservice/dev/WAService.js:1:1277089)
    console.error @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    e @ appservice?t=1562047712488:3547
    window.onerror @ VM4109:1
    scriptLoaded @ appservice?t=1562047712488:4038
    script.onload @ appservice?t=1562047712488:4050
    WAService.js:1 Tue Jul 02 2019 14:08:36 GMT+0800 (中国标准时间) Page route 错误
    VM4109:1 Page[pages/home/home] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.
    console.warn @ VM4109:1
    t.(anonymous function) @ WAService.js:1
    C @ WAService.js:1
    Tt @ WAService.js:1
    (anonymous) @ WAService.js:1
    It @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    i.emit @ WAService.js:1
    emit @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    e @ appservice?t=1562047712488:3547
    n.registerCallback.t @ appservice?t=1562047712488:3547
    l.forEach.t @ appservice?t=1562047712488:3547
    (anonymous) @ appservice?t=1562047712488:3547
    s.onmessage @ appservice?t=1562047712488:3547



  • 你的 cli 和 项目版本保持一致



  • @三金 我是第一次接触这个之前没用过,你可以说的详细些吗?谢了



  • 你可以 taro info 一下。 然后把截图传一下



  • @三金 不是很明白是啥意思,我是需要在命令行里执行吗



  • 此回复已被删除!


  • 你贴一下你的 package.json 文件~



  • @三金 {
    "name": "yuefouMiniApplication",
    "version": "1.0.0",
    "private": true,
    "description": "yuefou mini application",
    "main": "index.js",
    "scripts": {
    "build:weapp": "taro build --type weapp",
    "build:swan": "taro build --type swan",
    "build:alipay": "taro build --type alipay",
    "build:tt": "taro build --type tt",
    "build:h5": "taro build --type h5",
    "build:rn": "taro build --type rn",
    "dev:weapp": "npm run build:weapp -- --watch",
    "dev:swan": "npm run build:swan -- --watch",
    "dev:alipay": "npm run build:alipay -- --watch",
    "dev:tt": "npm run build:tt -- --watch",
    "dev:h5": "npm run build:h5 -- --watch",
    "dev:rn": "npm run build:rn -- --watch"
    },
    "author": "",
    "license": "MIT",
    "dependencies": {
    "@tarojs/async-await": "1.2.26",
    "@tarojs/components": "1.2.26",
    "@tarojs/mobx": "1.2.26",
    "@tarojs/mobx-h5": "1.2.26",
    "@tarojs/mobx-rn": "1.2.26",
    "@tarojs/rn-runner": "1.2.26",
    "@tarojs/router": "1.2.26",
    "@tarojs/taro": "1.2.26",
    "@tarojs/taro-alipay": "1.2.26",
    "@tarojs/taro-h5": "1.2.26",
    "@tarojs/taro-swan": "1.2.26",
    "@tarojs/taro-tt": "1.2.26",
    "@tarojs/taro-weapp": "1.2.26",
    "event-emitter": "^0.3.5",
    "mobx": "4.8.0",
    "nerv-devtools": "^1.3.9",
    "nervjs": "^1.3.9",
    "promise-polyfill": "^8.1.0"
    },
    "devDependencies": {
    "@tarojs/plugin-babel": "1.2.26",
    "@tarojs/plugin-csso": "1.2.26",
    "@tarojs/plugin-sass": "1.2.26",
    "@tarojs/plugin-uglifyjs": "1.2.26",
    "@tarojs/webpack-runner": "1.2.26",
    "@types/react": "16.3.14",
    "@types/webpack-env": "^1.13.6",
    "babel-eslint": "^8.2.3",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-jsx-stylesheet": "^0.6.5",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "eslint": "^4.19.1",
    "eslint-config-taro": "1.2.26",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-react": "^7.8.2",
    "eslint-plugin-taro": "1.2.26",
    "typescript": "^3.0.1"
    }
    }



  • 你这个 package.json 的版本是 1.2.26. 而你的 cli 是1.3.4的。 版本不一致。 你把 package.json 1.2.26 的全部变成 1.3.4. 然后删除 node_modules 重新 npm install 一下



  • @三金 好的,我是看看



  • @三金开发微信小程序,编译完成后就出现这个错误了 中说:

    1.3.4

    Failed to load resource: the server responded with a status of 404 (Not Found)
    VM1923:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能!
    console.warn @ VM1923:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ swiper-tab-pager-view.js:1
    require @ WAService.js:1
    (anonymous) @ VM2069:452
    scriptLoaded @ appservice?t=1562052858087:4038
    script.onload @ appservice?t=1562052858087:4050
    VM1923:1 TypeError: Cannot read property '0' of undefined
    at a.value (swiper-tab-pager-view.js:1)
    at Object.createComponent (index.js:1)
    at swiper-tab-pager-view.js:1
    at require (WAService.js:1)
    at <anonymous>:452:7
    at HTMLScriptElement.scriptLoaded (appservice?t=1562052858087:4038)
    at HTMLScriptElement.script.onload (appservice?t=1562052858087:4050)
    console.warn @ VM1923:1
    t.(anonymous function) @ WAService.js:1
    createComponent @ index.js:1
    (anonymous) @ swiper-tab-pager-view.js:1
    require @ WAService.js:1
    (anonymous) @ VM2069:452
    scriptLoaded @ appservice?t=1562052858087:4038
    script.onload @ appservice?t=1562052858087:4050
    VM1923:1 thirdScriptError
    sdk uncaught third Error
    module "npm/es5-ext/string/#/contains/index.js" is not defined
    Error: module "npm/es5-ext/string/#/contains/index.js" is not defined
    at require (http://127.0.0.1:24482/appservice/dev/WAService.js:1:1276948)
    at http://127.0.0.1:24482/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:24482/appservice/npm/d/index.js:1:635
    at require (http://127.0.0.1:24482/appservice/dev/WAService.js:1:1277089)
    at http://127.0.0.1:24482/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:24482/appservice/npm/event-emitter/index.js:1:509
    at require (http://127.0.0.1:24482/appservice/dev/WAService.js:1:1277089)
    at http://127.0.0.1:24482/appservice/dev/WAService.js:1:1276699
    at http://127.0.0.1:24482/appservice/utils/emitter-util.js:1:522
    at require (http://127.0.0.1:24482/appservice/dev/WAService.js:1:1277089)
    console.error @ VM1923:1
    t.(anonymous function) @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    e @ appservice?t=1562052858087:3547
    window.onerror @ VM1923:1
    scriptLoaded @ appservice?t=1562052858087:4038
    script.onload @ appservice?t=1562052858087:4050
    WAService.js:1 Tue Jul 02 2019 15:34:20 GMT+0800 (中国标准时间) Page route 错误
    VM1923:1 Page[pages/home/home] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.
    console.warn @ VM1923:1
    t.(anonymous function) @ WAService.js:1
    C @ WAService.js:1
    Tt @ WAService.js:1
    (anonymous) @ WAService.js:1
    It @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    i.emit @ WAService.js:1
    emit @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    e @ appservice?t=1562052858087:3547
    n.registerCallback.t @ appservice?t=1562052858087:3547
    l.forEach.t @ appservice?t=1562052858087:3547
    (anonymous) @ appservice?t=1562052858087:3547
    s.onmessage @ appservice?t=1562052858087:3547
    WAService.js:1 Tue Jul 02 2019 15:34:20 GMT+0800 (中国标准时间) Page route 错误(system error)
    VM1923:1 appLaunch with an already exist webviewId 3
    console.error @ VM1923:1
    t.(anonymous function) @ WAService.js:1
    k @ WAService.js:1
    (anonymous) @ WAService.js:1
    It @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    i.emit @ WAService.js:1
    emit @ WAService.js:1
    (anonymous) @ WAService.js:1
    (anonymous) @ WAService.js:1
    e @ appservice?t=1562052858087:3547
    n.registerCallback.t @ appservice?t=1562052858087:3547
    l.forEach.t @ appservice?t=1562052858087:3547
    (anonymous) @ appservice?t=1562052858087:3547
    s.onmessage @ appservice?t=1562052858087:3547



  • 错误你截图吧。。。


登录后回复