tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

🐛 [Bug]: 出码时平台项目的版本号与出码的版本号不一致的问题,导致项目无法下载依赖并启动

Open yao521521 opened this issue 1 year ago • 3 comments

Environment

google与edge

Version

v16.20.2

Version

不知道如何查看最新稳定版

Link to minimal reproduction

https://github.com/opentiny/tiny-engine

Step to reproduce

在低码平台中openTiny的版本为3.16.0 image 但是出码的版本变为了3.11.2 image

What is expected

平台版本与出码版本一致

What is actually happening

平台版本与出码版本不一致

What is your project name

tiny-engine

Any additional comments (optional)

No response

yao521521 avatar Jun 03 '24 03:06 yao521521

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: The version number of the platform project is inconsistent with the version number when the code is generated, resulting in the project being unable to download dependencies and start

Issues-translate-bot avatar Jun 03 '24 03:06 Issues-translate-bot

TinyEngine 的组件依赖版本与物料依赖版本无关。物料出码的版本是根据物料配置的版本进行出码。 比如在 mockServer 中,实际出码的版本以 mockServer/src/mock/get/app-center/v1/apps/schema/918.json 路径中的 componentsMap 值为准。 比如:

{
  "componentsMap": [
    {
        "componentName": "TinyCarouselItem",
        "package": "@opentiny/vue",
        "exportName": "CarouselItem",
        "destructuring": true,
        "version": "3.16.0"
      }
  ]
}

则生成出码写入到 package 中的依赖版本则为 3.16.0

@yao521521

chilingling avatar Jun 06 '24 01:06 chilingling

Bot detected the issue body's language is not English, translate it automatically.


The component dependency version of TinyEngine has nothing to do with the material dependency version. The version of the material that is coded is coded based on the version of the material configuration. For example, in mockServer, the actual coded version is based on the componentsMap value in the mockServer/src/mock/get/app-center/v1/apps/schema/918.json path. for example:

{
  "componentsMap": [
    {
        "componentName": "TinyCarouselItem",
        "package": "@opentiny/vue",
        "exportName": "CarouselItem",
        "destructuring": true,
        "version": "3.16.0"
      }
  ]
}

Then the dependency version generated and written into the package is 3.16.0

@yao521521

Issues-translate-bot avatar Jun 06 '24 01:06 Issues-translate-bot