connect icon indicating copy to clipboard operation
connect copied to clipboard

npm run build fails

Open kilianmh opened this issue 1 year ago • 2 comments

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

  • clone repository
  • npm run build

Expected behavior Build should succeed.

Environment Debian 12, AMD64

kilianmh avatar Jul 07 '24 07:07 kilianmh

Thanks for the report 🙏

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

janniks avatar Jul 08 '24 15:07 janniks

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'

kilianmh avatar Jul 09 '24 04:07 kilianmh

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

janniks avatar Jul 12 '24 18:07 janniks

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

kilianmh avatar Jul 12 '24 22:07 kilianmh