Giter VIP home page Giter VIP logo

Comments (15)

yuche avatar yuche commented on May 10, 2024

是 bug,晚些时间发个新版本 fix 一下。

from taro.

yuche avatar yuche commented on May 10, 2024

现在已经可以了,装一下最新版本的 @tarojs/cli 试一下。

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

@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.

yuche avatar yuche commented on May 10, 2024

这个问题只出现在 h5 吗,还是小程序?

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

@yuche ,只是H5

from taro.

yuche avatar yuche commented on May 10, 2024

我们还是没办法复现这个 bug,如果重新安装一下还是不行,能不能提供一下你的 tarojs/componentsnervjs 的版本号?

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

更新nervjs就没问题了,有问题的版本是1.2.18,不知道怎么回事,我创建项目的时候会有问题(创建了好几次,有时候没问题,不知道是不是跟我在docker里运行的有关系),更新nervjs到最新就好了,然后手动回退到1.2.18就有问题了,更新就可以了。
还有更新到0.0.41后,小程序貌似还是不支持没有return的写法

from taro.

yuche avatar yuche commented on May 10, 2024

但原来 0.0.40 的版本是小程序可以没有 return 但 H5 可能会有问题?更新 41 之后就反过来?

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

没有return,我好像尝试的一直都不可以:smile:

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

@yuche
debug了下,应该是nerv-to-mp那里的render.js有问题
164行 t.isReturnStatement(parentNode)

这种情况下parentNodeisArrowFunctionExpression(不知道有没有其他情况)

还有一个问题,我为什么找不到nerv-to-mp的项目地址:joy:

from taro.

yuche avatar yuche commented on May 10, 2024

from taro.

yuche avatar yuche commented on May 10, 2024

nerv-to-mp 就是 @tarojs/transformer-wx

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

package.json上是latest
node_modules里面是0.1.30
一安装下来就是这个版本

from taro.

yuche avatar yuche commented on May 10, 2024

https://www.npmjs.com/package/nerv-to-mp

最新的版本是 0.2.1

from taro.

jessejyang avatar jessejyang commented on May 10, 2024

确定没问题就行,关了

from taro.

Related Issues (20)

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.