-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
taro开发的支付宝小程序 混入原生支付宝小程序页面后 编译报错 #9471
Comments
如上,以提供复现demo |
mw@mwdeiMac-2 alipay-demo % taro info Taro CLI 3.2.10 environment info: mw@mwdeiMac-2 alipay-demo % npm run dev:alipay
👽 Taro v3.2.10 Tips: 预览模式生成的文件较大,设置 NODE_ENV 为 production 可以开启压缩。 编译 发现入口 src/app.tsx |
以上是升级版本以后 还是不可以,好像和版本无关 |
@luckyadam 可以跟进一下这条issue吗 |
相关平台
支付宝小程序
小程序基础库: 1.24.10
使用框架: React
复现步骤
taro开发的支付宝小程序 里面混入原生的支付宝小程序 编译一直报错
复现链接:https://github.com/suneai/alipay-demo
期望结果
编译成功
实际结果
编译 发现页面 src/packageHuabei/pages/rules/index.tsx
⠇ 正在编译...src.replace is not a function
src.replace is not a function
(node:954) UnhandledPromiseRejectionWarning: TypeError: src.replace is not a function
at /Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/plugin-platform-alipay/src/index.ts:43:34
at Array.forEach ()
at Object.fn (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/plugin-platform-alipay/src/index.ts:39:11)
at Kernel. (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:201:48)
at Generator.next ()
at /Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:8:71
at new Promise ()
at __awaiter (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:4:12)
at /Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:200:33
at eval (eval at create (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/tapable/lib/HookCodeFactory.js:74:10), :14:17)
at new Promise ()
at AsyncSeriesWaterfallHook.eval [as promise] (eval at create (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/tapable/lib/HookCodeFactory.js:74:10), :2:8)
at AsyncSeriesWaterfallHook.lazyCompileHook (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/tapable/lib/Hook.js:154:20)
at Kernel. (/Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:213:36)
at Generator.next ()
at /Users/sunxiaoye/Desktop/mwee/mwee_mini_2021/node_modules/@tarojs/service/dist/Kernel.js:8:71
(node:954) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)(node:954) [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.
⠏ 正在编译...
环境信息
The text was updated successfully, but these errors were encountered: