#`dagger run` fails with error GraphQLRequestError: Cannot query field "exitCode" on type "Container"

1 messages · Page 1 of 1 (latest)

novel timber
#

Hello.

Pretty new to dagger so I might be missing something. I'm trying to run dagger with one of the examples from the Github repository, more specifically nodejs/react-build. The Pipeline works fine when I run node ./build.js but fails with dagger run node ./build.js. Here's the more complete error msg:

❯ dagger run node ./build.js 
┣─╮ 
│ ▽ host.directory .
│ █ [0.07s] upload .
│ ┣ [0.05s] transferring eyJvd25lcl9jbGllbnRfaWQiOiJ3YXYyN2R6bDNzZjlwMjhhdzhneXgycDdlIiwicGF0aCI6Ii4iLCJpbmNsdWRlX3BhdHRlcm5zIjpudWxsLCJleGNsdWRlX3BhdHRlcm5zIjpbIm5vZGVfbW9kdWxlcy8iXSwiZm9sbG93X3BhdGhzIjpudWxsLCJyZWFkX3NpbmdsZV9maWxlX29ubHkiOmZhbHNlLCJtYXhfZmlsZV9zaXplIjowfQ==:
│ █ [0.03s] copy . (exclude node_modules/)
│ ┻ 
█ [0.40s] ERROR node ./build.js
┃ file:///home/martin/Code/dagger-examples/nodejs/react-build/node_modules/@dagger.io/dagger/dist/api/utils.js:155                            
┃                 throw new GraphQLRequestError(msg, {                                                                                        
┃                       ^                                                                                                                     
┃                                                                                                                                             
┃ GraphQLRequestError: Cannot query field "exitCode" on type "Container".                                                                     
┃     at file:///home/martin/Code/dagger-examples/nodejs/react-build/node_modules/@dagger.io/dagger/dist/api/utils.js:155:23                  
┃     at Generator.throw (<anonymous>)                                 

Any idea?

novel timber
#

Ok.. I got it working... Had to update the SDK to the latest version. The example had 0.6.1 in the package-lock.json. Cheers.