https://serverless-stack.com/ logo
#help
Title
# help
o

outaTiME

05/18/2022, 6:45 PM
Hi guys, after the migration to SST 1.x (1.1.1) I am getting the following warnings on the screen and they are quite annoying, one of the solutions could be to apply a null coalescence, but I don’t want to mess up my code, any recommendations? (I’m using plain javascript)
t

thdxr

05/18/2022, 6:46 PM
I'm actually planning on making an update to surpress this exact warning
gonna do that now
do you mind trying out a prerelase build?
yarn sst update 0.0.0-20220518184941
o

outaTiME

05/18/2022, 6:55 PM
That’s good news, I also get another strange warning while building the api routes using the spread operator (as shown in the image), the final generated object is the correct one, therefore I cannot understand the warning message
t

thdxr

05/18/2022, 6:57 PM
Hm ok we need to think about this one
we might just need to provide a way to turn off these warnings if you're not worried about following typesafety
o

outaTiME

05/18/2022, 7:01 PM
No problem, of course I can test it, but you know that the sst update command doesn’t work either, some time ago I was going to report an issue on github and I never did. My current project is inside a monorepo and for some reason the sst update does not modify the package.json of the project, therefore I always do manual updates
t

thdxr

05/18/2022, 7:02 PM
ah yeah it's a bit hard for us to keep up with all the different package managers / setups
need to find a better way to do this
o

outaTiME

05/18/2022, 7:03 PM
hahaha, I reported many things to you together, sorry for that 🤭
to do the manual installation of the pre release build how should I do it?
t

thdxr

05/18/2022, 7:04 PM
can just update package.json to that version
same way you update to any other version
o

outaTiME

05/18/2022, 7:04 PM
0.0.0-20220518184941 ?
cli and resources ?
t

thdxr

05/18/2022, 7:06 PM
cli resources and core
o

outaTiME

05/18/2022, 7:07 PM
for some reason i never got the core package 🤔
t

thdxr

05/18/2022, 7:09 PM
ah core isn't a subdependency you don't need to explicitly add it
so yeah just cli + resources
o

outaTiME

05/18/2022, 7:11 PM
great, and what should I check in this pre release build?
f

Frank

05/19/2022, 2:54 AM
Hey @outaTiME after u update, you shouldn’t be getting the error
Type "undefined" is not assigned to type "string"
.
As for the second error you mentioned, we’d need to think about it.
Will keep you posted on it.
o

outaTiME

05/19/2022, 5:03 AM
thanks @Frank, I no longer have warnings of
Type "undefined" is not assigned to type "string"
on version 1.1.2 🙌
on the other hand, I will follow up on the issue you created, thanks again