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

Sample react app is not working with vtex link #709

Open
PabloReszczynski opened this issue Apr 23, 2024 · 1 comment
Open

Sample react app is not working with vtex link #709

PabloReszczynski opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@PabloReszczynski
Copy link

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
@PabloReszczynski PabloReszczynski added the bug Something isn't working label Apr 23, 2024
@HugoLaguna
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants