!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

180 Members
51 Servers

Load older messages


SenderMessageTime
16 Jan 2025
@hasnep:matrix.orgHannes Okay, followup question, the package I'm building has an npm run build script, but it's just defined as npm run lint && npm run test, should I set dontNpmBuild = true so that nix doesn't lint and test the package every time it builds? 02:39:45
@hasnep:matrix.orgHannesHere's the PR for the package if anyone has suggestions :) https://github.com/NixOS/nixpkgs/pull/37420604:26:42
18 Jan 2025
@maralorn:maralorn.demaralorn joined the room.14:55:16
@maralorn:maralorn.demaralornHey there. I am trying to build https://github.com/gristlabs/grist-core bad sadly I have no clue what I am doing.14:57:06
@maralorn:maralorn.demaralornFrom perusing nixpkgs my take away was that the current best approach are yarn* hooks.14:57:50
@maralorn:maralorn.demaralornSo I copied the element-call derivation which seems to be doing exactly that.14:58:12
@maralorn:maralorn.demaralornNow I get this error:14:58:26
@maralorn:maralorn.demaralorn

grist-core> no configure script, doing nothing
grist-core> Executing yarnConfigHook
yarn config v1.22.22
success Set "yarn-offline-mirror" to "/nix/store/iswv7iddmhm8py46spivs75x2n53mjcf-offline".
Done in 0.02s.
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
error Can't make a request in offline mode ("https://registry.yarnpkg.com/https___registry.npmjs.org_jquery___jquery_3.5.0.tgz")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Can't make a request in offline mode ("https://registry.yarnpkg.com/node_gyp___node_gyp_8.4.1.tgz")
14:58:51
@maralorn:maralorn.demaralorn *
grist-core> no configure script, doing nothing
grist-core> Executing yarnConfigHook
yarn config v1.22.22
success Set "yarn-offline-mirror" to "/nix/store/iswv7iddmhm8py46spivs75x2n53mjcf-offline".
Done in 0.02s.
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
error Can't make a request in offline mode ("https://registry.yarnpkg.com/https___registry.npmjs.org_jquery___jquery_3.5.0.tgz")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Can't make a request in offline mode ("https://registry.yarnpkg.com/node_gyp___node_gyp_8.4.1.tgz")
14:59:03
@maralorn:maralorn.demaralornIf there are any docs about how to do this properly please let me know.14:59:53
@maralorn:maralorn.demaralornThe error looks surprisingliy like https://github.com/nix-community/yarn2nix/issues/11115:12:27
@maralorn:maralorn.demaralornThat url is pretty clearly wrong.15:12:44
@sfkvso:matrix.org@sfkvso:matrix.org joined the room.19:16:59
@sfkvso:matrix.org@sfkvso:matrix.orgHey, is there a recommended way to develop a npm/nodejs app now ? (node2nix and npmlock2nix seem unmaintained, and this post https://discourse.nixos.org/t/how-to-use-importnpmlock/53878/2 has no response) thank you all19:26:32
@sfkvso:matrix.org@sfkvso:matrix.org ok buildNpmPackage seems to do the job 20:21:01
20 Jan 2025
@emma:rory.gayEmma [it/its]hey, question, any ideas why yarn would fail out trying to read /yarn/config?16:48:46
@emma:rory.gayEmma [it/its]

running any yarn command at all results in this:

Error: ENOENT: no such file or directory, open '/yarn/config'
    at readFileSync (node:fs:448:20)
    at getRcConfigForCwd (/home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:57509:104)
    at /home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:89251:56
    at Generator.next (<anonymous>)
    at step (/home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:310:30)
    at /home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:328:14
    at new Promise (<anonymous>)
    at new F (/home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:5539:28)
    at /home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:307:12
    at start (/home/Rory/.npm/_npx/c094c3349f8dd527/node_modules/yarn/lib/cli.js:89295:18)
16:49:34
26 Jan 2025
@avocadoom:avocadoom.deavocadoom joined the room.00:35:26
@avocadoom:avocadoom.deavocadoomHey, anyone here ever experienced issues with Vite or especially Astro not hot-reloading when a nix flake generated symlink (say a .pre-commit-config.yaml for example) is present? Every attempt to tell vite to ignore this file fails unfortunately. When I delete said symlinks HMR works again immediately.00:39:01
@winter:catgirl.cloudWintersounds like a bug in Vite or Astro (or more specifically the dependency they both use for HMR)00:52:25
@avocadoom:avocadoom.deavocadoomJust tried to reproduce this in a small VIte project, guess thats an Astro Bug00:59:22
@avocadoom:avocadoom.deavocadoomI cant reproduce it in Vite00:59:29
@avocadoom:avocadoom.deavocadoomWell, I guess I'll open an issue in the Astro project then00:59:53
@avocadoom:avocadoom.deavocadoom

Btw. since describing it is rather unspecific. If you want to reproduce:

git clone --branch reproduce-symlink-bug https://github.com/NixOS/nixos-homepage.git

It does HMR when inputsFrom = [ config.pre-commit.devShell ]; is commented out and .pre-commit-config.yaml is not present and it fails otherwise.

I will try to test if I can get choickbar (Vites HMR file watcher) to fail as well, but I don't have high hopes since I cannot reproduce this in Vite either.

01:21:31
@avocadoom:avocadoom.deavocadoomAnd pls dont judge this branch quality wise, this is just for tinkering / tracking down the problem x(01:22:12
31 Jan 2025
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge to SomeoneSerge (Bruxelles).19:34:33
3 Feb 2025
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge (Bruxelles) to SomeoneSerge (Gand St. Pieters).13:40:03
5 Feb 2025
@winter:catgirl.cloudWinter changed their profile picture.23:30:15
6 Feb 2025
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge (Gand St. Pieters) to SomeoneSerge (UTC+U[-12,12]).17:49:36
8 Feb 2025
@terrorjack:matrix.orgterrorjack joined the room.01:25:26

Show newer messages


Back to Room ListRoom Version: 6