Giter VIP home page Giter VIP logo

Comments (13)

ShredderMing avatar ShredderMing commented on May 28, 2024 1

taro模板里好像没有把@tarojs/cli作为依赖,所以导致问题,自己指定版本添加到devDependencies里就可以了。

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。

from taro-listview.

han3367775 avatar han3367775 commented on May 28, 2024

@Rahim-Chan 我目前使用的Trao cli版本是1.3.18,运行 npm run 命令时,cli会优先找项目内部的cli,所以编译的时候会使用1.3.15,也就是目前固定的版本。这个版本会导致 一个 charAt undefined 错误

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

@han3367775 请问你有用Taro-ui吗,里面的配置也是这种单独版本"@tarojs/cli": "1.3.15"。或者可以的话,直接把报错的信息直接贴出来。

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

@han3367775 我把其他引用此插件的项目升级为Taro 1.3.18也没出现类似问题。

from taro-listview.

BoringDays avatar BoringDays commented on May 28, 2024

附议,这边1.3.19的项目引用之后,提示使用了1.3.15进行编译,结果小程序白屏

from taro-listview.

xiaoForest avatar xiaoForest commented on May 28, 2024

taro模板里好像没有把@tarojs/cli作为依赖,所以导致问题,自己指定版本添加到devDependencies里就可以了。

@ShredderMing 您好,这个devDependencies,版本在哪里设置,我小白白的狠 Thanks♪(・ω・)ノ @

from taro-listview.

ShredderMing avatar ShredderMing commented on May 28, 2024

@xiaoForestpackage.json里,比如1.3.19版本:

"devDependencies": {
  "@tarojs/cli": "1.3.19"
}

from taro-listview.

xiaoForest avatar xiaoForest commented on May 28, 2024

神奇,那天卸载后就在也没用,今天安装了下,版本是 Taro v1.3.25,成功编译了进去,没有报任何错误,也没和依赖冲突。

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

from taro-listview.

xiaoForest avatar xiaoForest commented on May 28, 2024

我们几个项目一直没这问题呀,请问你之前是什么版本 xiaoForest [email protected]于2019年12月3日 周二上午10:17写道:

神奇,那天卸载后就在也没用,今天安装了下,版本是 Taro v1.3.25,成功编译了进去,没有报任何错误,也没和依赖冲突。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#7?email_source=notifications&email_token=AENBQEQ7H2JIHGOXDYCG3GTQWW6UDA5CNFSM4IZMW4Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFX276I#issuecomment-560967673>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENBQEVWZ3DTHWUUSOKWJJLQWW6UDANCNFSM4IZMW4QQ .

可能是我的MQTT未调整好导致的冲突吧,我是解决了MQTT,顺便升级了下Taro,在安装这个,就没问题了,好像是这样,不报任何错就好。哈哈

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

from taro-listview.

oxygen-xx avatar oxygen-xx commented on May 28, 2024

使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。

会影响到全局,所以请在您项目的peerDev下配置

使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。

真的会影响到全局,对Taro是这样的。
请在peerDependencies下配置cli依赖。虽然可能会产生其它问题,但这是正确的作法。

from taro-listview.

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.