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

Taro.navigateTo 路由带参数跳转提示 页面is not found(开发环境正常,生产环境报错) #15757

Closed
17760799271 opened this issue May 20, 2024 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@17760799271
Copy link

相关平台

微信小程序

小程序基础库: 2.33.0
使用框架: Vue 3

复现步骤

Taro.navigateTo('/test?key=1&v=2');此代码在开发环境正常,打包发布后生产环境报错 。
"errMsg": "navigateTo:fail page /pages/qsa/index?a=1 is not found"

期望结果

路由携带参数正常跳转不报错

实际结果

路由携带参数无法跳转

环境信息

Taro CLI 3.6.8 environment info:
    System:
      OS: macOS 12.6.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn
      npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
    npmPackages:
      @tarojs/cli: ^3.6.18 => 3.6.18 
      @tarojs/components: ^3.6.18 => 3.6.18 
      @tarojs/helper: ^3.6.18 => 3.6.18 
      @tarojs/plugin-framework-react: ^3.6.25 => 3.6.25 
      @tarojs/plugin-framework-vue3: ^3.6.18 => 3.6.18 
      @tarojs/plugin-html: ^3.6.18 => 3.6.18 
      @tarojs/plugin-platform-alipay: ^3.6.0 => 3.6.18 
      @tarojs/plugin-platform-h5: ^3.6.18 => 3.6.18 
      @tarojs/plugin-platform-jd: ^3.6.0 => 3.6.18 
      @tarojs/plugin-platform-qq: ^3.6.0 => 3.6.18 
      @tarojs/plugin-platform-swan: ^3.6.0 => 3.6.18 
      @tarojs/plugin-platform-tt: ^3.6.0 => 3.6.18 
      @tarojs/plugin-platform-weapp: ^3.6.0 => 3.6.18 
      @tarojs/router: ^3.6.29 => 3.6.29 
      @tarojs/runtime: ^3.6.18 => 3.6.18 
      @tarojs/shared: ^3.6.18 => 3.6.18 
      @tarojs/taro: ^3.6.18 => 3.6.18 
      @tarojs/taro-h5: ^3.6.18 => 3.6.18 
      @tarojs/webpack5-runner: ^3.6.18 => 3.6.18 
      babel-preset-taro: ^3.6.0 => 3.6.18 
      eslint-config-taro: ^3.6.0 => 3.6.18 
    npmGlobalPackages:
      typescript: 4.8.4
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels May 20, 2024
@17760799271
Copy link
Author

已修复,"@tarojs/router": "^3.6.30"

This was referenced May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

1 participant