Dluo
Dluo
 引用路径应为 ../../../components/ProductBanner/index.wxml 项目为 taro init 生成的 typescript; 弃疗
Taro v0.0.63 和 Taro v0.0.60 都有这个问题, 访问 本机 ip 和 127.0.0.1,问题依旧, 没有更改 config/ 里的文件 运行 npm run build:h5 是正常的, 项目为 非 typescript , 系统 win7 64bit 以下为编译信息: $ npm run...
Taro v0.0.63 和 Taro v0.0.60 都有这个问题, 访问 本机 ip 和 127.0.0.1,问题依旧, 没有更改 config/ 里的文件 运行 npm run build:h5 是正常的, 项目为 非 typescript , 系统 win7 64bit 以下为编译信息: $ npm run...
 页面与组件的关系  相关代码 版本 👽 Taro v0.0.63
```javascript @connect( () => {}, dispatch => ({ asyncDeleteAddress: id => dispatch(asyncDeleteAddress(id)), asyncSetDefaultAddress: id => dispatch(asyncSetDefaultAddress(id)), }) ) ``` mapStateToProps 传了个空函数会报错, 如下: TypeError: Cannot convert undefined or null to object...
编译问题
在 npm run dev:weapp 命令下, 1. 编写代码出现语法错误后,编译报错,但修改过后,会出现该文件没有被引入,不进行编译的提示, 2. 多次遇到 `TypeError: Cannot read property 'scope' of undefined` 这个问题,重启命令会出现 `Error: ENOTEMPTY: directory not empty, rmdir 'C:\git\weapp\dist\npm'` 这个问题,得手动删除 dist 文件夹才可以启动命令
**问题描述** 在 更改了 coupons 里面一项的 isActive 后,渲染出来的 currentCouponText 的内容正确被更改, 但把所有项目的 `isActive` 置为 `false` 的话,渲染没有被改变 (在 h5 端运行正常,小程序端异常) **复现步骤** ```javascript render () { const {coupons} = this.state; const currentCoupon = coupons.find(item...
**问题描述** 自定义组件使用 @tarojs/redux 的 connect 后,this 指向了 connect 函数 **复现步骤** ```js import Taro, { Component } from '@tarojs/taro' import { View, Image } from '@tarojs/components' import {connect} from '@tarojs/redux' @connect(...
**问题描述** 无法在 render 方法里面正常使用 state, props 变量 **复现步骤** ```js import Taro, { Component } from '@tarojs/taro' import { View, Image } from '@tarojs/components' export default class AddressWithOrder extends Component {...
**问题描述** 在一个自定义组件当中使用了 connect, mapStateToProps 函数 写了 () => {}, 在当前页面 A 渲染该组件时正常运行,但跳转页面后 (到 AddressList),报错 **复现步骤** ```js // AddressWithOrder.js 组件,只用在 A 页面 @connect( () => {console.log(111)}, // 111 在当前页面正常输出,跳转到 AddressList 页面后也输出一次,接着报错...