Giter VIP home page Giter VIP logo

Comments (7)

liganghui avatar liganghui commented on September 27, 2024 1

研究了一下 找到原因了
微信小程序下 通过 默认导出的引用方式 编译会报错 列如:

import  ListView  from 'taro-listview';

修改为

import { ListView } from 'taro-listview';

如果 组件启用lazy属性 小程序编译也会报错 , 关闭即可初步正常运行

from taro-listview.

liganghui avatar liganghui commented on September 27, 2024

+1

from taro-listview.

liganghui avatar liganghui commented on September 27, 2024

且组件在Taro v3.0.15 未开启TS支持 微信小程序编译会报出 "‘Unexpected strict mode reserved word’" 错误 , 增加TS编译支持后 报 Super expression must either be null or a function

from taro-listview.

liganghui avatar liganghui commented on September 27, 2024

没有提供描述。

大概率原因是作者没有适配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.

Rahim-Chan avatar Rahim-Chan commented on September 27, 2024

没有提供描述。

大概率原因是作者没有适配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.

liganghui avatar liganghui commented on September 27, 2024

没有提供描述。

大概率原因是作者没有适应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.

SkyFitz avatar SkyFitz commented on September 27, 2024

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.

WX20201103-212328@2x

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.