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

CI 构建上传失败 code: 10009, @tarojs/plugin-mini-ci 构建是产生的奇怪问题 #16902

Open
liuyongming1010 opened this issue Nov 22, 2024 · 2 comments

Comments

@liuyongming1010
Copy link

相关平台

微信小程序

小程序基础库: 3.6.5
使用框架: React

复现步骤

taro build --type weapp --mode production --upload
情况1、
在微信开发工具打开的情况下并且引入构建后的目录,则能正常上传并且产生开发版二维码

情况2、
在微信开发工具没有打开的情况下则上传失败
出现错误
CustomError: pages/index/index.json: ["usingComponents"]["comp"]: "../../comp", component not found in the path: /Users/xxx/xx/xxx/dist/comp

code: 10009,
path: 'pages/index/index.json'

期望结果

CI构建且正常上传

实际结果

未打开微信开发工具无法正常上传

环境信息

👽 Taro v3.6.2


  Taro CLI 3.6.2 environment info:
    System:
      OS: macOS 15.0
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.2 => 3.6.2 
      @tarojs/components: 3.6.2 => 3.6.2 
      @tarojs/helper: 3.6.2 => 3.6.2 
      @tarojs/plugin-framework-react: 3.6.2 => 3.6.2 
      @tarojs/plugin-html: ^3.6.7 => 3.6.7 
      @tarojs/plugin-mini-ci: ^4.0.7 => 4.0.7 
      @tarojs/plugin-platform-alipay: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-h5: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-jd: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-qq: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-swan: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-tt: 3.6.2 => 3.6.2 
      @tarojs/plugin-platform-weapp: 3.6.2 => 3.6.2 
      @tarojs/react: 3.6.2 => 3.6.2 
      @tarojs/runtime: 3.6.2 => 3.6.2 
      @tarojs/shared: 3.6.2 => 3.6.2 
      @tarojs/taro: 3.6.2 => 3.6.2 
      @tarojs/webpack5-runner: 3.6.2 => 3.6.2 
      babel-preset-taro: 3.6.2 => 3.6.2 
      eslint-config-taro: 3.6.2 => 3.6.2 
      react: ^18.0.0 => 18.2.0 
This was referenced Nov 23, 2024
@cat-kun
Copy link

cat-kun commented Dec 21, 2024

微信开发者工具打开并且正常预览的情况下,无法上传!手动在开发者工具可以上传

启动 上传体验版代码到微信后台
提示 本次上传版本号为:"1.0.0",上传描述为:“CI机器人1 在 2024年12月21日上午11点6分 提交上传”
错误 上传失败 12/21/2024, 11:06:53 AM
pages/index/index.json: ["usingComponents"]["comp"]: "../../comp", component not found in the path: /Users/cat/code/fanda/wx/wx-cid/dist/weapp/comp
 ELIFECYCLE  Command failed with exit code 1.

相关的npm包版本

"dependencies": {
    "@babel/runtime": "^7.26.0",
    "@nutui/icons-react-taro": "^1.0.5",
    "@nutui/nutui-react-taro": "^2.6.23",
    "@qiun/ucharts": "2.5.0-20230101",
    "@tarojs/components": "4.0.7",
    "@tarojs/helper": "4.0.7",
    "@tarojs/plugin-framework-react": "4.0.7",
    "@tarojs/plugin-html": "4.0.7",
    "@tarojs/plugin-platform-alipay": "4.0.7",
    "@tarojs/plugin-platform-h5": "4.0.7",
    "@tarojs/plugin-platform-jd": "4.0.7",
    "@tarojs/plugin-platform-qq": "4.0.7",
    "@tarojs/plugin-platform-swan": "4.0.7",
    "@tarojs/plugin-platform-tt": "4.0.7",
    "@tarojs/plugin-platform-weapp": "4.0.7",
    "@tarojs/react": "4.0.7",
    "@tarojs/runtime": "4.0.7",
    "@tarojs/shared": "4.0.7",
    "@tarojs/taro": "4.0.7",
    "babel-plugin-import": "^1.13.8",
    "classnames": "^2.5.1",
    "dayjs": "^1.11.13",
    "flooks": "^6.4.0",
    "miniprogram-ci": "^2.0.10",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "vconsole": "^3.15.1"
  },
  "devDependencies": {
    "@babel/core": "^7.26.0",
    "@commitlint/cli": "^18.6.1",
    "@commitlint/config-conventional": "^18.6.3",
    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
    "@tarojs/cli": "4.0.7",
    "@tarojs/plugin-mini-ci": "4.0.7",
    "@tarojs/taro-loader": "4.0.7",
    "@tarojs/test-utils-react": "^0.1.1",
    "@tarojs/webpack5-runner": "4.0.7",
    "@types/jest": "^29.5.14",
    "@types/node": "^18.19.59",
    "@types/react": "^18.3.12",
    "@types/webpack-env": "^1.18.5",
    "@typescript-eslint/eslint-plugin": "^6.21.0",
    "@typescript-eslint/parser": "^6.21.0",
    "@umijs/fabric": "^4.0.1",
    "autoprefixer": "^10.4.20",
    "babel-preset-taro": "4.0.7",
    "eslint": "^8.57.1",
    "eslint-config-taro": "4.0.7",
    "eslint-plugin-import": "^2.31.0",
    "eslint-plugin-react": "^7.37.2",
    "eslint-plugin-react-hooks": "^4.6.2",
    "husky": "^8.0.3",
    "jest": "^29.7.0",
    "jest-environment-jsdom": "^29.7.0",
    "lint-staged": "^15.2.10",
    "mini-program-iconfont-cli": "^0.6.1",
    "postcss": "^8.4.47",
    "postcss-rem-to-responsive-pixel": "^6.0.2",
    "react-refresh": "^0.11.0",
    "stylelint": "^14.16.1",
    "tailwindcss": "^3.4.14",
    "taro-iconfont-cli": "^3.3.0",
    "ts-node": "^10.9.2",
    "tsconfig-paths-webpack-plugin": "^4.1.0",
    "typescript": "^5.6.3",
    "weapp-tailwindcss": "^3.6.2",
    "webpack": "5.78.0"
  },

@cat-kun
Copy link

cat-kun commented Dec 21, 2024

补充一下,2.0.10的版本会出现这个问题,指定1.9.16可以解决

"miniprogram-ci": "^2.0.10"

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