Skip to content

Incompatible node version with v6.49.1 by dependencies of @vtex/diagnostics-nodejs #584

Description

@hugo-expe

Disclaimer

Yes

What happend ?

When linking our application today, the @vtex/api version has been updated from 6.48.0 > 6.49.1 and is returning incompatibility with an @vtex/diagnostics-nodejs > @opentelemetry/core@2.0.0 dependency

 ✗ vtex link
16:46:07.629 - warn: Changing typescript on devDependencies from 3.9.7 to 5.5.3  
16:46:07.665 - info: Running yarn in react  
yarn install v1.22.10
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.13s.
16:46:08.108 - info: Finished running yarn  
16:46:08.109 - info: Running yarn in node  
yarn install v1.22.10
warning package.json: No license field
warning No license field
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 1.06s.
16:46:09.312 - info: Finished running yarn  
16:46:09.314 - info: Linking app ibksport.products-feed@0.5.2  
16:46:09.391 - info: Sending 185 files   
16:46:09.397 - info: Link ID: 65c2062e5af14732  
16:46:09.397 - info: Project size: 0.79MB  
16:46:09.403 - info: Compressing project files...  
16:46:09.526 - info: Compressed project size: 0.34MB  
16:46:10.345 - info: Sending files: 100% - 0.34MB/0.34MB  
16:46:10.651 - info: Build accepted for ibksport.products-feed@0.5.2 at ibksport/feed vtex.builder-hub@0.308.0  
16:46:10.652 - info: Starting build for app ibksport.products-feed@0.5.2 vtex.builder-hub@0.308.0  
16:46:11.443 - error: node@4.x builder failed to install dependencies through yarn (retries=0)
yarn errors:
@opentelemetry/core@2.0.0: The engine "node" is incompatible with this module. Expected version "^18.19.0 || >=20.6.0". Got "16.20.2"
Found incompatible module. vtex.builder-hub@0.308.0  
16:46:13.087 - error: node@4.x builder failed to install dependencies through yarn (retries=1)
yarn errors:
@opentelemetry/core@2.0.0: The engine "node" is incompatible with this module. Expected version "^18.19.0 || >=20.6.0". Got "16.20.2"
Found incompatible module. vtex.builder-hub@0.308.0  
16:46:14.698 - error: node@4.x builder failed to install dependencies through yarn (retries=2)
yarn errors:
@opentelemetry/core@2.0.0: The engine "node" is incompatible with this module. Expected version "^18.19.0 || >=20.6.0". Got "16.20.2"
Found incompatible module. vtex.builder-hub@0.308.0  
16:46:16.673 - error: node@4.x builder failed to install dependencies through yarn (retries=3)
yarn errors:
@opentelemetry/core@2.0.0: The engine "node" is incompatible with this module. Expected version "^18.19.0 || >=20.6.0". Got "16.20.2"
Found incompatible module. vtex.builder-hub@0.308.0  
16:46:16.680 - error: App build failed. Waiting for changes...  
16:46:22:009 - U node/package.json
16:46:23.016 - info: Link ID: 65c2062e5af14732  
16:46:23.019 - info: Project size: 0.00MB  
16:46:23.427 - info: Build accepted for ibksport.products-feed@0.5.2 at ibksport/feed vtex.builder-hub@0.308.0  

Steps to reproduce

Node builder 7 > Package.json

{
  "version": "0.1.4",
  "scripts": {
    "lint": "tsc --noEmit --pretty && tslint -c tslint.json --fix './**/*.ts'"
  },
  "dependencies": {
    "@vtex/api": "6.49.1",
    "@vtex/clients": "^2.21.0",
    "co-body": "^6.2.0",
    "ramda": "^0.30.1"
  },
  "devDependencies": {
    "@types/co-body": "^6.1.3",
    "@types/node": "^20.0.0",
    "@types/ramda": "types/npm-ramda#dist",
    "@vtex/tsconfig": "^0.6.0",
    "typescript": "5.5.3"
  }
}

Manifest App

{
  "name": "test-app",
  "vendor": "vtex",
  "version": "0.1.0",
  "dependencies": { },
  "builders": {
    "node": "7.x",
  },
  "credentialType": "absolute",
  "policies": [  ],
  "$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}

Expected behavior

Ensure compatibility of this dependency, as we cannot control that the @vtex/api version is not updated, the CLI strictly seems to update it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions