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]: 出码时平台项目的版本号与出码的版本号不一致的问题,导致项目无法下载依赖并启动 #534

Open
yao521521 opened this issue Jun 3, 2024 · 3 comments
Labels
question Further information is requested

Comments

@yao521521
Copy link

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

@Issues-translate-bot
Copy link

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

@chilingling
Copy link
Member

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 chilingling added the question Further information is requested label Jun 6, 2024
@Issues-translate-bot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants