Comments (13)
taro模板里好像没有把@tarojs/cli作为依赖,所以导致问题,自己指定版本添加到devDependencies里就可以了。
from taro-listview.
使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。
from taro-listview.
@Rahim-Chan 我目前使用的Trao cli版本是1.3.18,运行 npm run 命令时,cli会优先找项目内部的cli,所以编译的时候会使用1.3.15,也就是目前固定的版本。这个版本会导致 一个 charAt undefined 错误
from taro-listview.
@han3367775 请问你有用Taro-ui吗,里面的配置也是这种单独版本"@tarojs/cli": "1.3.15"。或者可以的话,直接把报错的信息直接贴出来。
from taro-listview.
@han3367775 我把其他引用此插件的项目升级为Taro 1.3.18也没出现类似问题。
from taro-listview.
附议,这边1.3.19的项目引用之后,提示使用了1.3.15进行编译,结果小程序白屏
from taro-listview.
taro模板里好像没有把@tarojs/cli作为依赖,所以导致问题,自己指定版本添加到devDependencies里就可以了。
@ShredderMing 您好,这个devDependencies,版本在哪里设置,我小白白的狠 Thanks♪(・ω・)ノ @
from taro-listview.
@xiaoForest 在package.json
里,比如1.3.19版本:
"devDependencies": {
"@tarojs/cli": "1.3.19"
}
from taro-listview.
神奇,那天卸载后就在也没用,今天安装了下,版本是 Taro v1.3.25,成功编译了进去,没有报任何错误,也没和依赖冲突。
from taro-listview.
from taro-listview.
我们几个项目一直没这问题呀,请问你之前是什么版本 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.
from taro-listview.
使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。
会影响到全局,所以请在您项目的peerDev下配置
使用上会影响吗,应该是不会影响全局的吧。
这样做是为了让项目依赖更稳定,固定一个版本。
真的会影响到全局,对Taro是这样的。
请在peerDependencies下配置cli依赖。虽然可能会产生其它问题,但这是正确的作法。
from taro-listview.
Related Issues (20)
- 2.0.2报错 HOT 1
- taro3.0.15报错Super expression must either be null or a function HOT 7
- 下拉刷新和释放刷新那几个字好大啊,能小点吗 HOT 1
- +1
- 2.0.3版本在 npm 包中找不到 HOT 5
- taro3.0.19使用taro-listview1.4.4版本报错 HOT 3
- taro-listview2.0版本使用以下参数下拉刷新没有生效! HOT 10
- 发现了好几个bug HOT 4
- 请问是否支持2.x 以及3.x HOT 2
- Super expression must either be null or a function HOT 4
- 第一页数据未满一屏时,不能上拉请求第二页数据 HOT 3
- android 7 及以下版本,滑动卡顿 HOT 1
- 百度小程序下拉刷新报错Cannot read property 'eventHappen' of null HOT 1
- 支持上拉加载和下拉刷新增加活动指示器吗 HOT 2
- 上拉加载更多问题 HOT 6
- 自定义页面 UI的属性设置无效 HOT 2
- 自定义无效 HOT 2
- 加载中、下拉刷新 文字不居中
- lazyBox_lazyView的缓存里只有viewHeight,key丢失
- onScroll weapp 没有用
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-listview.