Giter Site home page Giter Site logo

Comments (12)

zwwill avatar zwwill commented on September 13, 2024

定位中。。

from megalo.

zwwill avatar zwwill commented on September 13, 2024

你指的项目自带的demo 是这个吗?
https://github.com/kaola-fed/megalo-demo

from megalo.

yangdaolong avatar yangdaolong commented on September 13, 2024

不是这个,

是这个自带的就一个页面hello
创建 Megalo 工程
megalo my-megalo-pro
运行 npm run dev:alipay

然后用支付宝开发工具打开dist-alipay,点击预览在真机上扫码打开白屏

from megalo.

zwwill avatar zwwill commented on September 13, 2024

cli 构建的吗? 请问你用的cli哪个版本?

from megalo.

yangdaolong avatar yangdaolong commented on September 13, 2024

@megalo/[email protected]

from megalo.

fxy060608 avatar fxy060608 commented on September 13, 2024

@zwwill 我这里排查到是因为 Vue 源码src/core/util/next-tick.js中访问setImmediate导致的支付宝小程序真机报错,将setImmediate相关代码移除即可解决
if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) { macroTimerFunc = () => { setImmediate(flushCallbacks) } } else

from megalo.

bigmeow avatar bigmeow commented on September 13, 2024

根据 @fxy060608 的结论,测试的确能解决问题
理论上目前setImmediate只有ie10支持了,但发现支付宝自己的运行时环境实现了一个setImmediate的polyfill,在支付宝小程序控制台打印setImmediate即可发现
另外在pc端编译时其实就有错误了:
image

from megalo.

elcarim5efil avatar elcarim5efil commented on September 13, 2024

@bigmeow setImmediate 去掉好像也同样报这个错

from megalo.

n0rv1n avatar n0rv1n commented on September 13, 2024

我也遇到这个问题

from megalo.

elcarim5efil avatar elcarim5efil commented on September 13, 2024

最新版的 sdk 貌似修复了,没有复现,android 和 iOS 都正常。先关闭了。

from megalo.

xiexieni1992 avatar xiexieni1992 commented on September 13, 2024

[WORKER] onerror ["c.createElement is not a function. (In 'c.createElement("script")', 'c.createElement' is undefined)","https://2018071660710198.hybrid.alipay-eco.com/index.worker.js",1,341522,{"line":1,"column":341522,"sourceURL":"https://2018071660710198.hybrid.alipay-eco.com/index.worker.js"}]megalo0.9版本还是有这个问题

from megalo.

elcarim5efil avatar elcarim5efil commented on September 13, 2024

支付宝 ide 更新到最新了吗?我用 iOS 测了没有报错

from megalo.

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.