I’m just starting to migrate from SLS to SST… I’m ...
# sst
a
I’m just starting to migrate from SLS to SST… I’m using YARN + LERNA, and now having this issue when running `yarn sst build`:
Copy code
/Users/.../tasksApi/lib/TasksApiStack.ts
  0:0  error  Parsing error: Cannot read file '/users/.../node_modules/@serverless-stack/cli/tsconfig.json'

/Users/.../tasksApi/lib/index.ts
  0:0  error  Parsing error: Cannot read file '/users/.../node_modules/@serverless-stack/cli/tsconfig.json'
Looks like is not able to find the tsconfig from the root node_modules?
Looks like this is related to LINT. If lint disabled, it works.
f
What’s ur folder structure like? I will give it a try.
(cc @Jay is it possible SST looks for the wrong
tsconfig.json
path because of Yarn/Lerna workspaces?)
a
@Frank I’m using the structure from ts+lerna+yarn example project, let me get a link to it.
@Frank Like I said on other thread, I’ve created my entire architecture based on: https://github.com/AnomalyInnovations/serverless-lerna-yarn-starter I have several
packages
with some shared libraries, and 7
services
made with SSL. I have custom `eslint`files for each package/service, mostly because some spell-checking and custom rules.
j
We need to test this out a bit more. We use Lerna to manage our own repo. Let’s open an issue for this?
a
@Jay is there anything like
serverless-lerna-yarn-starter
but with SST?
Because this model worked very well for me.
My objective is to migrate away from SLS at some point, but I need this package/service structure.
j
Yeah that makes sense. We haven’t had a chance to put a starter like that for SST yet. Just opened an issue to track this (https://github.com/serverless-stack/serverless-stack/issues/446).
a
Thanks @Jay.