https://serverless-stack.com/ logo
#sst
Title
# sst
c

colin

08/20/2021, 2:50 PM
Does anyone get this error every now and then while the live lambda env is running?
Copy code
There was a problem reading the build metafile [Error: ENOENT: no such file or directory, open '/Users/dev/engine/.build/.esbuild.--src-graphql-server-handler.json'] {
   errno: -2,
   code: 'ENOENT',
   syscall: 'open',
   path: '/Users/dev/engine/.build/.esbuild.--src-graphql-server-handler.json'
}
happens somewhat randomly and I have to restart. Might be something with a jest watcher also running
npm test --watch
t

thdxr

08/20/2021, 2:51 PM
Hm I haven't seen that before
c

colin

08/20/2021, 2:57 PM
ill try to update this thread as I catch more clues
f

Frank

08/20/2021, 6:04 PM
Does
npm test
run
sst test
behind the scene?
c

colin

08/20/2021, 8:14 PM
yep - turns into
sst test "--watch"
f

Frank

08/20/2021, 9:12 PM
I see. Running 
sst test
would wipes out the 
.build
 folder and then creates it.
And
sst start
depends on the content in
.build
, think that’s causing the issue.
Can you try start up
npm test --watch
first, and then run
sst start
?
c

colin

08/21/2021, 12:03 AM
this seems to be working so far! Ill let you know if it happens again
f

Frank

08/21/2021, 3:59 AM
Sounds good! Just created an issue for this https://github.com/serverless-stack/serverless-stack/issues/732