vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

Sample react app is not working with `vtex link` #709

Open PabloReszczynski opened 5 months ago

PabloReszczynski commented 5 months ago

Describe the bug I've been following the tutorial at https://developers.vtex.com/docs/guides/vtex-io-documentation-3-creating-the-new-app, but when it comes to linking the app to my vtex env, the server responds with a 500 error.

To Reproduce Steps to reproduce the behavior:

  1. Clone the sample repo: git clone https://github.com/vtex-apps/react-app-template.git
  2. Edit manifest.json, setting project vendor, name, title and description.
  3. run vtex link

Expected behavior The app should be linked to my environment.

Output

❯ vtex link
13:14:18.458 - info: Running yarn in react
yarn install v1.22.10
warning package.json: No license field
warning CHANGE_ME@0.0.0: No license field
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.40s.
13:14:19.262 - info: Finished running yarn
13:14:19.263 - info: Linking app example-vendor.example-app@0.0.1
13:14:19.337 - info: Sending 15 files
13:14:19.339 - info: Link ID: 0aff6646583682b0
13:14:19.339 - info: Project size: 0.47MB
13:14:19.339 - info: Compressing project files...
13:14:19.399 - info: Compressed project size: 0.21MB
13:14:20.921 - info: Sending files: 100% - 0.21MB/0.21MB
13:14:21.048 - info: Build accepted for example-vendor.example-app@0.0.1 at accountname/env vtex.builder-hub@0.299.0
13:14:21.656 - error: App build failed with message: invalid character '<' looking for beginning of value
13:14:21.663 - error: Error while retrieving list of versions for app example-vendor.example-app. vtex.builder-hub@0.299.0
13:14:21.702 - error: Request failed with status code 500 vtex.builder-hub@0.299.0

$ npx envinfo --system --binaries --browsers

❯ npx envinfo --system --binaries --browsers
npx: installed 1 in 1.428s

  System:
    OS: macOS 14.4.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 255.53 MB / 16.00 GB
    Shell: 3.7.1 - /usr/local/bin/fish
  Binaries:
    Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
    bun: 1.1.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 124.0.6367.62
    Safari: 17.4.1
HugoLaguna commented 5 months ago

not is possible use any vendor value, it needs exist on vtex . Use vtex or your vtex account.