Comments (7)
研究了一下 找到原因了
微信小程序下 通过 默认导出的引用方式 编译会报错 列如:
import ListView from 'taro-listview';
修改为
import { ListView } from 'taro-listview';
如果 组件启用lazy
属性 小程序编译也会报错 , 关闭即可初步正常运行
from taro-listview.
+1
from taro-listview.
且组件在Taro v3.0.15 未开启TS支持 微信小程序编译会报出 "‘Unexpected strict mode reserved word’" 错误 , 增加TS编译支持后 报 Super expression must either be null or a function
from taro-listview.
没有提供描述。
大概率原因是作者没有适配taro v3版本 , 临时解决方法 :
修改 node_modules/taro-listview/dist/weapp/components 各个组件的头部引用 .
将
import Taro, {Component } from '@tarojs/taro';
修改为
import Taro from '@tarojs/taro';
import React, { Component } from 'react'
from taro-listview.
没有提供描述。
大概率原因是作者没有适配taro v3版本 , 临时解决方法 :
修改 node_modules/taro-listview/dist/weapp/components 各个组件的头部引用 .
将import Taro, {Component } from '@tarojs/taro';修改为
import Taro from '@tarojs/taro'; import React, { Component } from 'react'
在2.x.x版本已经做了taro3的升级了;
from taro-listview.
没有提供描述。
大概率原因是作者没有适应taro v3版本,临时解决方法:
修改node_modules / taro-listview / dist / weapp / components各个组件的标题引用。
将进口 太郎, {元器件 } 从 '@ tarojs /芋头' ;修改为
从'@ tarojs / taro'导入Taro ; 从'react'导入React ,{组件}在2.xx版本已经做了taro3的升级了;
...............大兄弟 你文档标明一下有2.x啊 , npm 安装还是1.x版本.....
from taro-listview.
npm install -g [email protected]
没找到2.0.3版本
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
from taro-listview.
Related Issues (20)
- 2.0.2报错 HOT 1
- 下拉刷新和释放刷新那几个字好大啊,能小点吗 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.