-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
请问可以使用rxjs吗? #308
Comments
理论上是不会有问题的。 |
整体导入会报错 import Rx from 'rxjs/Rx'; 只能以补丁方式导入 但这种方式遇到某些操作符interval, delay, debounce就会报错 root_1.root.setInterval is not a function; |
@dearhulu 请问这个问题怎么解决,Thanks |
@Gcaufy 同样的错误,报 Uncaught TypeError: Cannot read property 'assign' of undefined 的错误 |
@Gcaufy 不行喔,还是报同样的错误。wepy new demo,然后安装上面的步骤做还是一样
|
@hejinzhi 查看一下npm/rxjs/util/assgin.js 代码。 中间的 |
@Gcaufy 存在,那个新增的replace方法好像没被调用?
|
正则是不是这样写才对
|
@hejinzhi 那不是正则,那是一个string. 这里的代码是在我本地测试通过的。。。调用 replace插件之后,输出日志会输出
|
@Gcaufy 可以了,但是debounceTime这些操作符不能用
|
@hejinzhi |
@Gcaufy
可是还是没有替换掉,log里面也没有“替换”
虽然可以手动改掉,但是我想知道为什么replace的plugin我这里会没作用呢 |
使用wepy后,小程序是否可以使用rxjs?
尝试后会报 Uncaught TypeError: Cannot read property 'assign' of undefined 的错误
The text was updated successfully, but these errors were encountered: