Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官方交流群 #198

Open
luckyadam opened this issue Jun 25, 2018 · 87 comments

Comments

Projects
None yet
@luckyadam
Copy link
Contributor

commented Jun 25, 2018

目前 Taro 交流主要在微信群

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

加群请扫码

@qinyang1980

This comment has been minimized.

Copy link

commented Jun 27, 2018

@luckyadam ,这个跨多端,有没有可能能支持Flutter呢?或者支持底层的FlutterEngine ?

@johnbian

This comment has been minimized.

Copy link

commented Jun 28, 2018

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

@qinyang1980

This comment has been minimized.

Copy link

commented Jun 28, 2018

@johnbian ,谁说的。Nodejs底层是C++写的,上层不也是JS。桥接一把。

@freecodemans

This comment has been minimized.

Copy link

commented Jul 4, 2018

一直报错是咋个事,求回
taro init myApp
D:\Program Files(x86)\nodejs\node_modules@tarojs\cli\src\util\index.js:112
exports.replaceAsync = async function (str, regex, asyncFn) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\Program Files(x86)\nodejs\node_modules@tarojs\cli\bin\taro:4:44)

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 5, 2018

@freecodemans 你的 node 版本太低了

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 5, 2018

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

@gs19931024

This comment has been minimized.

Copy link

commented Jul 12, 2018

您好,按照文档编译h5的时候,会有报错,能麻烦您看一下吗?
D:\work\taro\myApp>taro build --type h5 --watch 👽 Taro v0.0.69 开始编译项目 myApp 创建 发现文件 src\app.js 创建 发现文件 src\app.scss 创建 发现文件 src\index.html 创建 发现文件 src\pages\index\index.js 创建 发现文件 src\pages\index\index.scss (node:15940) UnhandledPromiseRejectionWarning: Error: Cannot find module 'webpack' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (D:\work\taro\myApp\node_modules_webpack-dev-server@3.1.4@webpack-dev-server\lib\Server.js:22:17) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) (node:15940) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:15940) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@Superman-wc

This comment has been minimized.

Copy link

commented Jul 12, 2018

想问一下怎么处理 less 的@import 报错,
[Error: '../../common' wasn't found. Tried - ../../common.less,../../common.less]

找不到 @import引入的文件

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 12, 2018

@gs19931024 本地依赖没有完全装好

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 12, 2018

@Superman-wc 这个bug还没解决好

@jiankian

This comment has been minimized.

Copy link

commented Jul 21, 2018

支持其他第三方的React JS的组件吗?官方说支持Web RN 小程序,那组件会不会不支持那些reactJS的库呢,还是框架会转换编译出小程序框架?跟美团mpvue差别多大?在通用性上,就是真正的开发出来就到处运行(web 微信小程序 React Native App)

@geekeryoung

This comment has been minimized.

Copy link

commented Jul 25, 2018

我创建时开启了typescript,然后生成的app.tsx加载的那里有这么一行代码:
Taro.render(<App/>, document.getElementById('app'));
<App/>这里一直在报这个错:
Error:(42, 13) TS2345: Argument of type 'Element' is not assignable to parameter of type 'Component<{}, {}>'. Property 'setState' is missing in type 'Element'.
虽然可以编译成功,但是总有一条红线看着好难受啊,求解决办法。

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 25, 2018

@geekeryoung 试试最新版本

@falost

This comment has been minimized.

Copy link

commented Aug 3, 2018

我创建了一个关于Taro的技术交流QQ群,希望大家可以加入交流!
只谈技术,不谈过往!
群号:854453745
taro

@317540019

This comment has been minimized.

Copy link

commented Aug 10, 2018

abc@1.0.0 dev:h5 E:\nodejs\install\abc
npm run build:h5 -- --watch

abc@1.0.0 build:h5 E:\nodejs\install\abc
taro build --type h5 "--watch"

Taro v0.0.73

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

Compile successfully!

Listening at http://192.168.1.100:8080/
Listening at http://localhost:8080/

你好,有个问题请教
但是在浏览器预览时,http://localhost:8080/ ,总是空白,请问是什么原因呢?谢谢
项目也重新创建了几个来试了,都一样,小程序可以编译和预览

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Aug 10, 2018

@317540019 试试最新的 1.0.0-beta.9 版本呢

@317540019

This comment has been minimized.

Copy link

commented Aug 10, 2018

taro update 总是提示,命令错语

@317540019

This comment has been minimized.

Copy link

commented Aug 10, 2018

谢谢,好了,可以更新了,正在更新

@317540019

This comment has been minimized.

Copy link

commented Aug 12, 2018

E:\nodejs\install\abc>taro build --type h5 --watch
Taro v1.0.0-beta.9

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

Compile successfully!

ℹ️ Listening at http://192.168.1.100:8080/
ℹ️ Listening at http://localhost:8080/

监听文件修改中...

你好,编译成h5 ,预览时页面总是空白,"Hello world"显示不出来,并且没有错误提示。
而编译成小程序"Hello world"则能正常显示出来。

不知道什么原因,谢谢

@anshixiaobai

This comment has been minimized.

Copy link

commented Aug 17, 2018

子组件怎么调用父组件的方法 子组件怎么修改父组件的值 api上面没看到有些啊

@zacksleo

This comment has been minimized.

Copy link
Contributor

commented Aug 17, 2018

@anshixiaobai 这个属于React的范畴呀

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Aug 28, 2018

@IDrinkMoreWater 可以加啊

@zacksleo

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2018

00:18 助手MM休息了呀

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Aug 29, 2018

@zacksleo 也许是抠脚大汉,哈哈哈

@qiuhd2015

This comment has been minimized.

Copy link

commented Aug 29, 2018

D:\wxapp_demo\taro\demo1>npm run dev:h5

demo1@1.0.0 dev:h5 D:\wxapp_demo\taro\demo1
npm run build:h5 -- --watch
demo1@1.0.0 build:h5 D:\wxapp_demo\taro\demo1
taro build --type h5 "--watch"
� Taro v1.0.0-beta.19
开始编译项目 demo1
创建 发现文件 src\app.css
创建 发现文件 src\app.js
创建 发现文件 src\index.html
创建 发现文件 src\pages\index\index.css
创建 发现文件 src\pages\index\index.js
缺少npm包@tarojs/webpack-runner,开始安装...
Cannot download "https://r.cnpmjs.org/node-sass//v4.9.3/win32-x64-64_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

第一次体验,按照文档编译预览提示上面的错误,单独安装 npm i @tarojs/webpack-runner也不行,
麻烦帮忙看下什么情况的

@zacksleo

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2018

@qinyang1980 github访问超时了? 挂代理试试

@geekyouth

This comment has been minimized.

Copy link

commented Aug 29, 2018

我的github 首页竟然推荐了这个项目

@Tjm1995

This comment has been minimized.

Copy link

commented Aug 30, 2018

小程序可以支持div这些自定义组件了,虽然默认是内联,但可以绑定事件,但通过taro写的div转成小程序,样式虽然正确,但绑定事件失效

@luckyadam

This comment has been minimized.

Copy link
Contributor Author

commented Aug 30, 2018

@Tjm1995 在 Taro 里没有 div 组件,要使用基础组件库 @tarojs/components 来编写页面

@zuojx1013

This comment has been minimized.

Copy link

commented Sep 3, 2018

@qiuhd2015 你好,跟你一样的问题,不知道有没有解决呢?
缺少npm包@tarojs/webpack-runner,开始安装...
Cannot download "https://r.cnpmjs.org/node-sass//v4.9.3/win32-x64-64_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

@zacksleo 已经搭梯子了

@goddessting

This comment has been minimized.

Copy link

commented Dec 19, 2018

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

@meliguangjian

This comment has been minimized.

Copy link

commented Dec 20, 2018

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

@wids1356

This comment has been minimized.

Copy link
Contributor

commented Dec 25, 2018

加群的二维码过期了

@LiangHanLyu

This comment has been minimized.

Copy link

commented Dec 26, 2018

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

@Hrero

This comment has been minimized.

Copy link

commented Dec 28, 2018

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

@gurenla

This comment has been minimized.

Copy link

commented Jan 2, 2019

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

This comment has been minimized.

Copy link

commented Jan 9, 2019

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

@yishenggudou

This comment has been minimized.

Copy link

commented Jan 9, 2019

拉我下 加个群 timger

@luodanyalian

This comment has been minimized.

Copy link

commented Jan 10, 2019

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

@wang89jun

This comment has been minimized.

Copy link

commented Jan 30, 2019

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

@CrazyOctopusDan

This comment has been minimized.

Copy link

commented Feb 12, 2019

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

@AndriodStudent

This comment has been minimized.

Copy link

commented Mar 20, 2019

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

@AndriodStudent

This comment has been minimized.

Copy link

commented Mar 20, 2019

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

@yanlee26

This comment has been minimized.

Copy link

commented Mar 20, 2019

@AndriodStudent

This comment has been minimized.

Copy link

commented Mar 21, 2019

官方文档仔细看看,支持后续开发的,不过建议从头至尾全部用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的背景图,全部报错了,可能这就是缺陷吧。确实不如从头开发来的好,但是重构又很 耗时、、、唉

@yuche yuche added the Announcement label Apr 8, 2019

@sq9950

This comment has been minimized.

Copy link

commented Apr 18, 2019

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

@blackRe

This comment has been minimized.

Copy link

commented Apr 22, 2019

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

@blackRe

This comment has been minimized.

Copy link

commented Apr 22, 2019

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

@luckyadam luckyadam pinned this issue May 5, 2019

@Riskel

This comment has been minimized.

Copy link

commented May 5, 2019

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

@lzt9977

This comment has been minimized.

Copy link

commented May 13, 2019

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

@lzt9977

This comment has been minimized.

Copy link

commented May 13, 2019

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

@karosLi

This comment has been minimized.

Copy link

commented May 13, 2019

会考虑支持VUE吗

@tianweicc

This comment has been minimized.

Copy link

commented May 16, 2019

image

h5无法编译啊
@zhangfu-git

This comment has been minimized.

Copy link

commented May 21, 2019

  1. 请问插件开发如何使用taro-ui?
  2. 插件开发使用@tarojs/async-await?
@blackRe

This comment has been minimized.

Copy link

commented May 21, 2019

@leechaouser

This comment has been minimized.

Copy link

commented May 21, 2019

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

加一

@leechaouser

This comment has been minimized.

Copy link

commented May 21, 2019

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

@zhangfu-git

This comment has been minimized.

Copy link

commented May 22, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.