Hi guys, after the migration to SST 1.x (1.1.1) I ...
# help
o
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
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
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
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
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
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
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
can just update package.json to that version
same way you update to any other version
o
0.0.0-20220518184941 ?
cli and resources ?
t
cli resources and core
o
for some reason i never got the core package 🤔
t
ah core isn't a subdependency you don't need to explicitly add it
so yeah just cli + resources
o
great, and what should I check in this pre release build?
f
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
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