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

[Bug report]跨端转百度小程序执行报错Page not found #1294

Closed
zhangcai93 opened this issue Oct 18, 2023 · 2 comments
Closed

[Bug report]跨端转百度小程序执行报错Page not found #1294

zhangcai93 opened this issue Oct 18, 2023 · 2 comments

Comments

@zhangcai93
Copy link

问题描述
初始化一个项目: mpx init xxx
安装依赖完毕后, pages/index.mpx文件中使用setup选项, 导入开发者工具, 运行时报错

环境信息描述
至少包含以下部分:

  1. 系统类型: Mac
    2 . Mpx依赖版本: "@mpxjs/core": "^2.8.51", "@mpxjs/webpack-plugin": "^2.8.51", "@mpxjs/api-proxy": "^2.8.0",
  2. 小程序开发者工具信息: 百度小程序

最简复现demo
3ab8d6d3f30490a2a282e42c6d3b5c5f

mpx-project2_副本.zip

问题2:
若开启forceUsePageCtor: true; 报错同#1284

@hiyuki
Copy link
Collaborator

hiyuki commented Oct 18, 2023

可以先手动在页面json中添加一个component:true规避问题,框架后续修复版本中也会根据构造选项自动添加

@hiyuki
Copy link
Collaborator

hiyuki commented Oct 18, 2023

https://github.com/didi/mpx/releases/tag/v2.8.53
问题1,2均已修复

@hiyuki hiyuki closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants