Coder Social home page Coder Social logo

taro-library's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

taro-library's Issues

cloud分支: mock-server启动报错TypeError: router[method] is not a function

simplest-mock-server> gulp mock
[23:53:07] Using gulpfile \taro-library-cloud\simplest-mock-server\gulpfile.js
[23:53:07] Starting 'mock'...
[23:53:07] Finished 'mock' after 51 ms
[23:53:07] [nodemon] 2.0.7
[23:53:07] [nodemon] to restart at any time, enter `rs`
[23:53:07] [nodemon] watching path(s): example\**\* server.js router.js
[23:53:07] [nodemon] watching extensions: js,json
[23:53:07] [nodemon] starting `node ./server.js --dir example --port 3000`
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books\hot.json
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books\isbn\{isbn}.json
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books\new.json
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books\recommend.json
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books\{id}.json
[INFO] Reading mock template file: \taro-library-cloud\simplest-mock-server\example\GET\books.json
\taro-library-cloud\simplest-mock-server\router.js:69
  router[method](pathname, handler);
                ^

TypeError: router[method] is not a function
    at routes.forEach (D:\taro-library-cloud\simplest-mock-server\router.js:69:17)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (D:\programs\demo\taro-library-cloud\simplest-mock-server\router.js:50:8)
    at Module._compile (internal/modules/cjs/loader.js:736:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
    at Function.Module._load (internal/modules/cjs/loader.js:560:3)
    at Module.require (internal/modules/cjs/loader.js:665:17)
    at require (internal/modules/cjs/helpers.js:20:18)
application has crashed!

请问下这个是缺少了什么依赖么?node: v11.8.0,已执行npm install
(PS:按12版本去安装,也报错:fs.js:45 } = primordials; ^ ReferenceError: primordials is not defined ,网上给出的答案是node12版本不支持gulp4以下版本)
QAQ,求解惑

您好,小程序运行后,报这个错误,请指导一下?

index.js:85 Uncaught ReferenceError: regeneratorRuntime is not defined
at index.js:85
at index.js:84
at index.js:31
at require (WAService.js:1)
at :137:7
at HTMLScriptElement.scriptLoaded (appservice?t=1570516467306:2041)
at HTMLScriptElement.script.onload (appservice?t=1570516467306:2084)

h5下报错

book-list 的 constructor里的这些改到 componentWillMount里咯,要不会报错

componentWillMount(){
    const { type } = this.$router.params;
    switch (type) {
      case "new":
        return Taro.setNavigationBarTitle({ title: "新书速递" });
      case "hot":
        return Taro.setNavigationBarTitle({ title: "近期热门" });
      case "recommend":
        return Taro.setNavigationBarTitle({ title: "为你推荐" });
    }
  }

另外试了一下,支付宝小程序可以跑起来

按你写出现了这个问题

这怎么发图片好,在pages/home/index
点击新书速递时他跳转页面是pages/home/pages/book-list/index?type=new
(VM17535:1 navigateTo:fail page "pages/home/pages/book-list/index?type=new" is not found)
1111

求助:运行不起来啊,跟着这个guide

跟着这个文档 运行不起来啊
app.js:39 Uncaught TypeError: Cannot read property 'Provider' of undefined
at app.js:39
at require (WAService.js:1)
at :1:1
at HTMLScriptElement.scriptLoaded (appservice?t=1567478069631:2041)
at HTMLScriptElement.script.onload (appservice?t=156747806963

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.