Comments (15)
是 bug,晚些时间发个新版本 fix 一下。
from taro.
现在已经可以了,装一下最新版本的 @tarojs/cli
试一下。
from taro.
@yuche ,貌似还是不行
@tarojs/*: version
: 0.0.40
又发现了新问题:
在h5
模式下:
<View className='index'>
{
[1, 2, 3, 4, 0, 5].map(i => <Text key={i}>{ i }</Text>)
}
</View>
渲染出来是12345
,看了Elements
元素0
有元素,但内容为空
from taro.
这个问题只出现在 h5 吗,还是小程序?
from taro.
@yuche ,只是H5
from taro.
我们还是没办法复现这个 bug,如果重新安装一下还是不行,能不能提供一下你的 tarojs/components
和 nervjs
的版本号?
from taro.
更新nervjs
就没问题了,有问题的版本是1.2.18
,不知道怎么回事,我创建项目的时候会有问题(创建了好几次,有时候没问题,不知道是不是跟我在docker
里运行的有关系),更新nervjs
到最新就好了,然后手动回退到1.2.18
就有问题了,更新就可以了。
还有更新到0.0.41
后,小程序貌似还是不支持没有return
的写法
from taro.
但原来 0.0.40 的版本是小程序可以没有 return
但 H5 可能会有问题?更新 41 之后就反过来?
from taro.
没有return
,我好像尝试的一直都不可以:smile:
from taro.
@yuche
我debug
了下,应该是nerv-to-mp
那里的render.js
有问题
164行 t.isReturnStatement(parentNode)
这种情况下parentNode
是isArrowFunctionExpression
(不知道有没有其他情况)
还有一个问题,我为什么找不到nerv-to-mp
的项目地址:joy:
from taro.
from taro.
nerv-to-mp 就是 @tarojs/transformer-wx
from taro.
package.json
上是latest
node_modules
里面是0.1.30
一安装下来就是这个版本
from taro.
https://www.npmjs.com/package/nerv-to-mp
最新的版本是 0.2.1
from taro.
确定没问题就行,关了
from taro.
Related Issues (20)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- [email protected]安装并初始化项目后,再安装Taro 3.3.0 无法install,跟taro-cli初始化的依赖包冲突 HOT 1
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 使用taro init新建taro-ui模板的项目时有依赖问题
- InlinePaymentPanel 组件无法传入extInfos HOT 1
- 返回上一个页面瞬间白屏
- 返回上一个页面瞬间白屏
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro.