NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.34k stars 4.77k forks source link

官方交流群 #198

Open luckyadam opened 6 years ago

luckyadam commented 6 years ago

目前 Taro 交流主要在微信群

Taro

其他交流群

Taro RN

Taro Vue

Taro Harmony

Taro Lark

NutUI x Taro

Taro UI

yoohan-dex commented 5 years ago

请问是否会加入react的新特性 useState useEffect useContext?

luckyadam commented 5 years ago

@qq1311256696 你的版本太旧了

luckyadam commented 5 years ago

@yoohan-dex 未来会同步 react 的一些新特性

atfa commented 5 years ago

@qinyang1980 andy 感觉可能不大,flutter要是支持js 那估计有戏。

我就是用flutter的,但是项目需要做小程序,才找到taro。flutter 要是支持编译成小程序和H5,那就牛大了。很期待,但是希望渺茫。flutter这边有一个butterfly , https://github.com/yjbanov/butterfly 可以去参考一下。

sevenlet commented 5 years ago

👽 Taro v1.1.4

开始编译项目 myApp 创建 发现文件 src/app.scss 创建 发现文件 src/app.tsx 创建 发现文件 src/index.html 创建 发现文件 src/pages/index/index.scss 创建 发现文件 src/pages/index/index.tsx

🙅 Failed to compile.

./.temp/app.js Module build failed (from ./node_modules/babel-loader/lib/index.js): ReferenceError: Unknown plugin "transform-decorators-legacy" specified in "/Users/zhangjinxiu/.babelrc" at 0, attempted to resolve relative to "/Users/zhangjinxiu" at Array.map ()

小程序可以运行起来,但是h5就会失败

wenshijun88 commented 5 years ago

编译成小程序总是报这个错,官方例子 image

deanman commented 5 years ago

exception 编译h5 总这个样子 node 10.13.0 npm6.4.1.

zhouweiming commented 5 years ago

扫码 回复 Taro 加群,没反应呢?

zhongpingWang commented 5 years ago

@qiuhd2015 缺少npm包@tarojs/webpack-runner,开始安装... 这个如何解决的,今天刚装也是这个问题

goddessting commented 5 years ago

百度开发者工具刚打开就编译失败:提示child exit with error code 1。什么原因呢?

meliguangjian commented 5 years ago

找了一下没找到框架对原生值的通信机制,比如我想弄个第三方登录这个该怎么搞···

wids1356 commented 5 years ago

加群的二维码过期了

LiangHanLyu commented 5 years ago

不支持 behavior 转换是啥意思?是小程序中有这样的代码就无法编译通过么?这个项目里用的很多诶

Hrero commented 5 years ago

error: taro-build(1) does not exist, try --help 请问:报这个错是怎么回事呢

mtcarpenter commented 5 years ago

peerDependencies WARNING @tarojs/transformer-wx@1.2.3 › eslint-plugin-taro@1.2.3 requires a peer of babel-eslint@^8.2.3 but babel-eslint@10.0.1 was installed peerDependencies WARNING @tarojs/transformer-wx@1.2.3 › eslint-plugin-taro@1.2.3 requires a peer of eslint@^4.15.0 but eslint@5.11.1 was installed deprecate babel-plugin-remove-dead-code@^1.3.2 use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions deprecate @tarojs/transformer-wx@1.2.3 › eslint@5.11.1 › file-entry-cache@2.0.0 › flat-cache@1.3.4 › circular-json@^0.3.1 CircularJSON is in maintenance only, flatted is its successor. Recently updated (since 2018-12-26): 10 packages (detail see file D:\software\nodejs\node_global\node_modules\@tarojs\cli\node_modules.recently_updates.txt) 一直使用不了,这个是怎么解决呢

jinyindu commented 5 years ago

各个小程序授权机制都不一样 在源码中怎么区分

yishenggudou commented 5 years ago

拉我下 加个群 timger

luodanyalian commented 5 years ago

原生小程序转成taro编译的时候. wx:if竟然还存在结果编译就会报错怎么解决? 原生代码: image 转成taro之后编译h5版本报错: image

wang89jun commented 5 years ago

taro用less 如何引用taro-ui样式(scss)

CrazyOctopusDan commented 5 years ago

Taro在官方文档中有写到如何引入插件,而我是开发插件的,目录结构也是如同官方小程序插件给出的,然而plugin的目录就是不会被编译,这可如何是好。

AndriodStudent commented 5 years ago

我想问一下,我现在是已经用原生开发完成的微信小程序,我想引入taro进行后续的开发,有没有人知道我改怎么玩,急急急啊!!!

AndriodStudent commented 5 years ago

我想问一下,我现在是已经用原生开发完成的微信小程序,我想引入taro进行后续的开发,有没有人知道我改怎么玩,急急急啊!!! @luckyadam

yanlee26 commented 5 years ago

官方文档仔细看看,支持后续开发的,不过建议从头至尾全部用taro

在 2019年3月20日,下午4:12,张永刚 notifications@github.com 写道:

我想问一下,我现在是已经用原生开发完成的微信小程序,我想引入taro进行后续的开发,有没有人知道我改怎么玩,急急急啊!!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NervJS/taro/issues/198#issuecomment-474728733, or mute the thread https://github.com/notifications/unsubscribe-auth/AT71j9oX07HTtT_n3tmWsd5f14hcl0b5ks5vYe1VgaJpZM4U2BCD.

AndriodStudent commented 5 years ago

官方文档仔细看看,支持后续开发的,不过建议从头至尾全部用taro 在 2019年3月20日,下午4:12,张永刚 @.***> 写道: 我想问一下,我现在是已经用原生开发完成的微信小程序,我想引入taro进行后续的开发,有没有人知道我改怎么玩,急急急啊!!! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#198 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AT71j9oX07HTtT_n3tmWsd5f14hcl0b5ks5vYe1VgaJpZM4U2BCD.

按照官方文档撸了一遍,确实不行,原来开发的小程序内用到了分包加载、背景图片用到了base64的背景图,全部报错了,可能这就是缺陷吧。确实不如从头开发来的好,但是重构又很 耗时、、、唉

sq9950 commented 5 years ago

回复Taro,小助手回复的信息,没有加群的信息呀

blackRe commented 5 years ago

我的项目在h5运行时接口无法访问,出现跨域问题,怎么解决?

blackRe commented 5 years ago

我的项目在h5运行时接口无法访问,出现跨域问题,怎么解决?怎么是指跨域的反向代理????

Riskel commented 5 years ago

文档里有说支持自定义tagbar,custom=true以后需要怎么做

lzt9977 commented 5 years ago

加好友 十几天都不通过??

lzt9977 commented 5 years ago

componentDidMount在h5端 为什么每次进去都会执行 不是说对应着小程序的onLaunch么

karosLi commented 5 years ago

会考虑支持VUE吗

tianweicc commented 5 years ago
image

h5无法编译啊

zhangfu-git commented 5 years ago
  1. 请问插件开发如何使用taro-ui?
  2. 插件开发使用@tarojs/async-await?
blackRe commented 5 years ago

taro-ui 官网https://taro-ui.aotu.io/#/;按照这个安装即可,兼容基本没什么问题

------------------ 原始邮件 ------------------ 发件人: "张富"; 发送时间: 2019年5月21日(星期二) 下午3:36 收件人: "NervJS/taro"; 抄送: "踏雪污痕"1063560061@qq.com;"Comment"; 主题: Re: [NervJS/taro] 官方交流群 (#198)

请问插件开发如何使用taro-ui?

插件开发使用@tarojs/async-await?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

alvinli1008 commented 5 years ago

扫码 回复 Taro 加群,没反应呢?

加一

alvinli1008 commented 5 years ago

微信: uleechao 谁能拉我进群,谢谢了

zhangfu-git commented 5 years ago

@blackRe 在插件开发使用@tarojs/async-await,打包后微信开发工具提示regeneratorRuntime is not defined, 追踪了打包后的代码,发现里面直接使用regeneratorRuntime方法, 但发现regeneratorRuntime在global下,直接使用会报错regeneratorRuntime is not defined,只能写一个const regeneratorRuntime = global.regeneratorRuntime;解决这个问题?

这是我使用方式有问题吗?

huaianfanliling commented 5 years ago

@qinyang1980 暂时没有计划支持 flutter 哦

咨询一下,请问对快应用的支持大约什么时候可以落地呢,我们正在做技术选型?

sapphirezzz commented 5 years ago

@luckyadam 扫码后没通过,麻烦处理下

Yan-Hua commented 5 years ago

@luckyadam 您好,想问一下如何引入vconsole,我在index.html中引入,但是没有生效

zwzy commented 5 years ago

@freecodemans 你的 node 版本太低了

大佬,taro中如何使用快应用原生组件

zwzy commented 5 years ago

目前 Taro 交流主要在微信群

  • Taro 开发交流 1⃣️ 群(已满)
  • Taro 开发交流 2⃣️ 群(已满)
  • Taro 开发交流 3⃣️ 群(已满)
  • Taro 开发交流 4️⃣ 群(已满)
  • Taro 开发交流 5️⃣ 群(已满)
  • Taro 开发交流 6️⃣ 群(已满)
  • Taro 开发交流 7️⃣ 群(已满)
  • Taro 开发交流 8️⃣ 群(已满)
  • Taro 开发交流 9️⃣ 群(已满)
  • Taro 开发交流 🔟 群(已满)
  • Taro 开发交流 1⃣️1⃣️ 群(等待加入)

加群请扫码

Taro 小助手2

目前 Taro 交流主要在微信群

  • Taro 开发交流 1⃣️ 群(已满)
  • Taro 开发交流 2⃣️ 群(已满)
  • Taro 开发交流 3⃣️ 群(已满)
  • Taro 开发交流 4️⃣ 群(已满)
  • Taro 开发交流 5️⃣ 群(已满)
  • Taro 开发交流 6️⃣ 群(已满)
  • Taro 开发交流 7️⃣ 群(已满)
  • Taro 开发交流 8️⃣ 群(已满)
  • Taro 开发交流 9️⃣ 群(已满)
  • Taro 开发交流 🔟 群(已满)
  • Taro 开发交流 1⃣️1⃣️ 群(等待加入)

加群请扫码

Taro 小助手2

大佬,taro 中如何全用快应用原生组件。

YUN73R commented 5 years ago

C:\Users\msi01\Desktop\Taro>taro init demo 👽 Taro v1.3.9

Taro即将创建一个新项目! Need help? Go and open issue: https://github.com/NervJS/taro/issues/new

√ 拉取远程模板仓库成功! ? 请输入项目介绍! demo01 ? 是否需要使用 TypeScript ? No ? 请选择 CSS 预处理器(Sass/Less/Stylus) Less ? 请选择模板 默认模板 { AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\templates\default.npmrc at EditionInterface.exports.copy (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy.js:48:3) at EditionInterface.module.exports [as copyTpl] (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy-tpl.js:29:8) at Project.template (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\creator.js:56:17) at Object. (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\init.js:118:21) at Generator.next () at C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\init.js:7:71 at new Promise () at __awaiter (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\init.js:3:12) at Object.createApp (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\init.js:105:12) at Project.write (C:\Users\msi01\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\create\project.js:187:16) generatedMessage: false, name: 'AssertionError [ERR_ASSERTION]', code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } 创建项目时一直报这个,项目安装不了,请问是怎么回事

tomorrowGooddays commented 5 years ago

Trying to copy from a source that does not exist: C:\Users\Administrator\AppData\Roaming\npm\node_modules\@tarojs\cli\templates\default.npmrc 安装提示报这个错误,请问下有人遇到过吗?看路径的确没有.npmrc文件

tomorrowGooddays commented 5 years ago

C:\Users\msi01\Desktop\Taro>taro init demo 👽 Taro v1.3.9

Taro即将创建一个新项目! Need help? Go and open issue: https://github.com/NervJS/taro/issues/new

√ 拉取远程模板仓库成功! ? 请输入项目介绍! demo01 ? 是否需要使用 TypeScript ? No ? 请选择 CSS 预处理器(Sass/Less/Stylus) Less ? 请选择模板 默认模板 { AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\templates\default.npmrc at EditionInterface.exports.copy (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy.js:48:3) at EditionInterface.module.exports [as copyTpl] (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy-tpl.js:29:8) at Project.template (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\creator.js:56:17) at Object. (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:118:21) at Generator.next () at C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:7:71 at new Promise () at __awaiter (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:3:12) at Object.createApp (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:105:12) at Project.write (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\project.js:187:16) generatedMessage: false, name: 'AssertionError [ERR_ASSERTION]', code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } 创建项目时一直报这个,项目安装不了,请问是怎么回事

我也遇到同样的问题,请问有人知道怎么解决吗

YUN73R commented 5 years ago

这个我是这样解决的,有大佬说把别的文件夹里的.npmrc文件拷贝到taro的default下就可以了,我也是这么解决的,但是npm run dev:h5的时候,不知道又报什么错,反正各种报错

------------------ 原始邮件 ------------------ 发件人: "tomorrowGooddays"notifications@github.com; 发送时间: 2019年7月17日(星期三) 晚上7:59 收件人: "NervJS/taro"taro@noreply.github.com; 抄送: " "599526934@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [NervJS/taro] 官方交流群 (#198)

C:\Users\msi01\Desktop\Taro>taro init demo 👽 Taro v1.3.9

Taro即将创建一个新项目! Need help? Go and open issue: https://github.com/NervJS/taro/issues/new

√ 拉取远程模板仓库成功! ? 请输入项目介绍! demo01 ? 是否需要使用 TypeScript ? No ? 请选择 CSS 预处理器(Sass/Less/Stylus) Less ? 请选择模板 默认模板 { AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\templates\default.npmrc at EditionInterface.exports.copy (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy.js:48:3) at EditionInterface.module.exports [as copyTpl] (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\mem-fs-editor\lib\actions\copy-tpl.js:29:8) at Project.template (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\creator.js:56:17) at Object. (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:118:21) at Generator.next () at C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:7:71 at new Promise () at __awaiter (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:3:12) at Object.createApp (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\init.js:105:12) at Project.write (C:\Users\msi01\AppData\Roaming\npm\node_modules@tarojs\cli\dist\create\project.js:187:16) generatedMessage: false, name: 'AssertionError [ERR_ASSERTION]', code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } 创建项目时一直报这个,项目安装不了,请问是怎么回事

我也遇到同样的问题,请问有人知道怎么解决吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

xiaoningzihai commented 5 years ago

UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@tarojs/cli/templates/taro-temp'我更新成v1.3.13后会有这个问题

liuwuhaoo commented 4 years ago

请问一下,有在生产环境用 Taro 开发快应用的吗?

anthhub commented 4 years ago

@qinyang1980 andy 感觉可能不大,flutter要是支持js 那估计有戏。

qq 团队已经搞出来了啊https://github.com/TGIF-iMatrix/MXFlutter

navcat commented 4 years ago

这个预计什么时候能支持京东小程序?http://mp.jd.com/