hirosystems / connect

A library for building excellent user experiences with Stacks.
https://connect.stacks.js.org
MIT License
76 stars 40 forks source link

npm run build fails #382

Closed kilianmh closed 2 weeks ago

kilianmh commented 2 weeks ago

Describe the bug

lerna run build
lerna notice cli v8.1.6
lerna info versioning independent

 Lerna (powered by Nx)   Running target build for 3 projects

   ✖  @stacks/connect-ui:build
      ERROR: [Errno 2] No such file or directory: 'build'

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 Lerna (powered by Nx)   Ran target build for 3 projects (276ms)

   ✔  0/1 succeeded [0 read from cache]

   ✖  1/1 targets failed, including the following:

      - @stacks/connect-ui:build

To Reproduce

Expected behavior Build should succeed.

Environment Debian 12, AMD64

janniks commented 2 weeks ago

Thanks for the report 🙏

Which noce version are you using and how did you install the dependencies (yarn/npm/etc.)?

kilianmh commented 2 weeks ago

iam using npm on node v18.19.0 (default version on my debian 12)

I tried npm install. That fails first because of outdated dependencies. After updating dependencies I get this error:

> postinstall
> concurrently 'husky install .github/.husky' 'yarn build:connect-ui'

00h00m00s 0/0: : [1] ERROR: [Errno 2] No such file or directory: 'build:connect-ui'
[1] yarn build:connect-ui exited with code 1
[0] install command is deprecated
[0] husky install .github/.husky exited with code 0
npm ERR! code 1
npm ERR! path .../connect
npm ERR! command failed
npm ERR! command sh -c concurrently 'husky install .github/.husky' 'yarn build:connect-ui'
janniks commented 2 weeks ago

It should work when using the yarn package manager instead. Can you try that?

kilianmh commented 2 weeks ago

yarn install worked but only on yarn berry, not with yarn classic. Maybe you mention that somewhere in the documentation.