导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. zimeizhuju
    Z
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    zimeizhuju

    @zimeizhuju

    0
    声望
    5
    帖子
    1527
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    zimeizhuju 关注

    zimeizhuju 发布的帖子

    • taro 2.0.1 npm run dev:weapp或build,dist文件缺失wxss

      查了一下语法初步文件后缀jsx和js都试了:
      把这段注释了就没问题了,升级2.0出现的请问这样写是不是不行
      isShow ? <View> 111</View> : isShow2 ? <View> 222</View> : <View> 333</View>

      发布在 Taro
      Z
      zimeizhuju
    • import path from 'path' ^^^^ SyntaxError: Unexpected identifier

      import path from 'path'

      alias: {
      '@/components': path.resolve(__dirname, '..', 'src/components'),
      '@/utils': path.resolve(__dirname, '..', 'src/utils')

      },

      发布在 Taro
      Z
      zimeizhuju
    • radio点击onChange事件没有反应本版2.0.0-beta.12

      <Radio value='微信' checked onChange={this.handleChange}>微信</Radio>

      发布在 Taro
      Z
      zimeizhuju
    • 2.0.0-beta.10 taro-ui全局引入样式报错

      ./.temp/app.scss)
      Module build failed (from ./node_modules/sass-loader/lib/loader.js):

      @import "~taro-ui/dist/style/index.scss"; // 引入组件样式 - 方式二
      ^
      Can't find stylesheet to import.
      ╷
      1 │ @import "~taro-ui/dist/style/index.scss"; // 引入组件样式 - 方式二
      │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ╵
      stdin 1:9 root stylesheet
      in

      发布在 Taro
      Z
      zimeizhuju
    • 启动服务报错 npm run dev:h5,Error: Cannot find module '../dist/build' Require stack:

      taro重新安装,npm 也重新更新了还是这样谁知道怎么回事呀,网上各种方法都试过了
      package.json:
      "dependencies": {
      "@tarojs/async-await": "2.0.0-beta.10",
      "@tarojs/components": "2.0.0-beta.10",
      "@tarojs/components-qa": "2.0.0-beta.10",
      "@tarojs/redux": "2.0.0-beta.10",
      "@tarojs/redux-h5": "2.0.0-beta.10",
      "@tarojs/router": "2.0.0-beta.10",
      "@tarojs/taro": "2.0.0-beta.10",
      "@tarojs/taro-alipay": "2.0.0-beta.10",
      "@tarojs/taro-h5": "2.0.0-beta.10",
      "@tarojs/taro-qq": "2.0.0-beta.10",
      "@tarojs/taro-quickapp": "2.0.0-beta.10",
      "@tarojs/taro-swan": "2.0.0-beta.10",
      "@tarojs/taro-tt": "2.0.0-beta.10",
      "@tarojs/taro-weapp": "2.0.0-beta.10",
      "js-md5": "^0.7.3",
      "nerv-devtools": "^1.5.6",
      "nervjs": "^1.5.6",
      "redux": "^4.0.0",
      "redux-logger": "^3.0.6",
      "redux-thunk": "^2.3.0",
      "taro-ui": "^2.2.4"
      },

      Error: Cannot find module '../dist/build'
      Require stack:

      • /usr/local/lib/node_modules/@tarojs/cli/bin/taro-build
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
      发布在 Taro
      Z
      zimeizhuju