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

I want to build the front-end part of this project separately, but there was an error. #6661

Open
starraintian opened this issue Nov 15, 2024 · 3 comments

Comments

@starraintian
Copy link

Describe the bug

After cloning the code and entering the web directory, I executed yarn install --frozen-lockfile according to the README.md. Since I'm using a WIN10 computer, I added the command $env:NODE_ENV = "development"; yarn ls:dev. The error message is:
yarn run v1.22.22
$ nx run labelstudio:serve:development

NX Given napi value is not an array

Pass --verbose to see the stacktrace.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image
Please help me, thank you very much.

@starraintian
Copy link
Author

more detail
image

@mszsnn
Copy link

mszsnn commented Nov 15, 2024

the same error with me, and how to do for build the front-end part of this project separately

@heidi-humansignal
Copy link
Collaborator

Hello,

The error message you're encountering:

NX Given napi value is not an array

typically indicates a compatibility issue with your Node.js version or how environment variables are set on Windows.
Please try the following steps to address the issue:

  1. Check Your Node.js and Yarn Versions:
  • Node.js Version:

    • Ensure you're using Node.js version 18.x. Versions higher than 18 may cause compatibility issues.
    • You can download Node.js 18.x from the official Node.js website.
    • Verify your Node.js version by running: node -v It should output something like v18.x.x.
  • Yarn Version:

    • Ensure you're using Yarn version 1.22.19.
    • Verify your Yarn version by running: yarn -v
    • If you need to install or update Yarn, follow the official Yarn installation instructions.
  1. Clean Install Dependencies:
  • Navigate to the web directory in your Label Studio project.
  • Delete the node_modules folder and the yarn.lock file to ensure a clean installation.
  • Run the following command to install dependencies without modifying the lock file: yarn install --frozen-lockfile

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

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

No branches or pull requests

3 participants