I'm starting my sst application with *`sst start -...
# help
m
I'm starting my sst application with
sst start --stage local
but code changes not updating. Live reload not working ? I dont see any errors ? how should I debug this ?
this happened after I upgrade 0.54.4
t
With the latest version it doesn't do anything until a function is invoked for the first time
once you invoke it it'll rebuild it on code changes, we maybe should print messages so it's clear
m
but I dont see any changes
I'm using console.log s to see new messages
but its not printing
@thdxr
Btw I did remove the stack and re-start but it didnt work
t
How are you triggering the function?
m
from postman
s
When you say it's not showing any errors/not working, what do you see after you execute
sst start --stage local
? A blank screen? Can you share a screenshot?
m
I'm working on a windows pc
I dont see any changes in console.log basically
t
When you change and save the code you don't see it rebuild?
m
nope
t
And that's after you've invoked it once already?
Can you run in --verbose and see if anything prints when you try this
m
ofc
it does see the refresh but log is not changing
t
Is that where your function is?
m
yep
t
Ok I think I know what this is, let me investigate this morning
m
ok thanks for the great work 🎉
t
hey are you around to try some debugging steps?
If you can edit
node_modules/@serverless-stack/core/dist/cli/FunctionBuilder.js
Look around like line 81 for this snippet
Copy code
function shouldBuild(ctx, evt) {
    if (!ctx.warm)
        return false;
    if (ctx.instructions.watcher.include.every((x) => !(0, picomatch_1.default)(x)(evt.file)))
        return false;
    if (!ctx.instructions.shouldBuild)
        return true;
    return ctx.instructions.shouldBuild([evt.file]);
}
Add a log statement after every return and tell me which
if
statement it's returning at
m
oh I was sleeping letme check if thats gonna work
it returns first if
t
So it's failing if ctx.warm?
Make sure you invoke the function once
And then try
m
checking
it always returns first if
j
Just following up @Mehmet Ali SARAÇ did we fix this for you?
m
nope
j
@thdxr let’s look at it this week when we get a chance?
t
Yeah will do
j
Thank you!
t
Fixed in 0.55.0 @Mehmet Ali SARAÇ
m
@thdxr thanks
j
@Mehmet Ali SARAÇ let us know if it works for you.
m
it works right now I upgraded 2 different project and works perfectly
j
That's awesome! Thanks for letting us know.