in other news: im running into a problem with hot-...
# sst
c
in other news: im running into a problem with hot-reloading in a monorepo context. this is what our project looks like:
Copy code
lib # stack defs
packages
  hasuraActions
  ...other things
this is what our function defs look like:

http://tugboat.dev/uxbm0y.png

im running sst start from the root, so
app.appPath
is
/home/fyko/code/pushas/com.pushas.app/lib
it has no problem re-compiling changes to stack defs but it cannot do anything in packages/
i made some changes to the watcher source file, logging what files are ignored and and it doesnt ignore our
packages
directory i had a hunch it had something to do with this line: https://github.com/serverless-stack/serverless-stack/blob/20a8f0a4bab4148565aa308a23f41ebb14fa6e26/packages/cli/scripts/start.js#L182, telling the watcher to only watch
lib/**
update: i un-made-our-lib-folder-a-package and its emitting ".... just changed" but its not actually recompiling
t
Right now sst.json needs to be at the root of your repo
We have some tricky situations to deal with to support it being a subpackage
c
yep yep did that, but now im running into a different issue
using 0.58 and cdk v2
TypeError: scope.node.addChild is not a function
installed the consutrcuts lib too per cdk docs
t
Wait 58 doesn't support v2
I accidentally pushed 58.1 earlier - is that what you're on?
c
58.0
f
Hey @Carter Himmel did you manage to figure out the
scope.node.addChild
issue?
Might be worth to wipe out the node_modules and the lock file and try again.
c
i just updated to the recent version and fixed it