SunnyQjm / taro-cropper

Taro框架下的跨端图片裁剪组件,目前支持微信小程序端,QQ小程序端, 支付宝小程序端, 字节跳动小程序端, 百度小程序端和H5端
https://sunnyqjm.github.io/taro-cropper/#/
109 stars 45 forks source link

3.0编译报错 (已经使用了taro-cropper@react) #24

Open whwhz opened 3 years ago

whwhz commented 3 years ago

taro版本 3.0.14 基础库 2.14.0 使用 taro-cropper@react 版本之后仍然编译报错, 这是我本地少了什么东西吗 ./node_modules/_taro-cropper@1.2.4@taro-cropper/dist/weapp/components/taro-cropper/index.tsx Module build failed (from ./node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js): SyntaxError: /Users/zhuowenhao/Desktop/zjcj/weapp/node_modules/_taro-cropper@1.2.4@taro-cropper/dist/weapp/components/taro-cropper/index.tsx: Unexpected reserved word 'interface' (10:0) image

LLLLLLLX commented 2 years ago

请问这个问题解决了吗 我也遇到了相同的问题

hwl0123 commented 1 year ago

我也遇到了,怎么解决啊

hwl0123 commented 1 year ago

我也遇到了,怎么解决啊 o.o 官方已经给出答案了

taro v3.x React

如果使用Taro3进行开发,且使用的React进行开发,则可以选择安装下述包。目前在微信小程序端测试成功,H5端因为taro实现的一些问题,暂时还有问题。

npm install --save taro-cropper@react