#@Dudesons when you get a chance, have
1 messages · Page 1 of 1 (latest)
process "tsx --no-deprecation --tsconfig /src/dagger/tsconfig.json /src/dagger/src/__dagger.entrypoint.ts" did not complete successfully: exit code: 1
┃ Error: resolve: call function "WithSource": process "/runtime" did not complete successfully: exit
┃ ode: 2
✘ Node.withSource(
persisted: true
src: ✔ GitRef.tree: Directory! 0.0s
): Node! 0.1s
! call function "WithSource": process "/runtime" did not complete successfully: exit code: 2
┃ main.invoke({0x7881c0, 0x40001bc7b0}, {0x400000e420, 0x2, 0x8}, {0x400012f308?, 0x4000167b98?},
┃ 00000e1d0, 0xa}, 0x4000167df0)
┃ /src/node/dagger/dagger.gen.go:996 +0x257c
┃ main.dispatch({0x788188, 0xbf75c0})
┃ /src/node/dagger/dagger.gen.go:718 +0x640
┃ main.main()
maybe I need to specify a version for node with withVersion("20.15.0") or similar
that was it!
Hmmm...wish I could set yarn version too!
Hi, I was planning to reuse this module soon but I can check if I have the same error and btw updating the dagger version of this module
Hi, sorry for the delay so I just take sometime to recheck this module.
So you have 2 ways to use it
if all informations are in the package.json you can use this function: https://github.com/Dudesons/daggerverse/blob/main/node/dagger/auto.go#L9
here you have different usage of this module: https://github.com/Dudesons/daggerverse/blob/main/ci/dagger/node.go
for a speicifc version of npm or yarn I didn't thought to allow that because these tools are packaged with the docker image but I will take a look to integrate this option