I had an old project that was still on SST v0.4.0 ...
# help
j
I had an old project that was still on SST v0.4.0 and now just upgrading to the latest version. Running into an issue now when I run
sst build
the type-checking is type checking
@types/react
in my
node_modules
The setup is using Yarn Workspaces monorepo
Copy code
(root)
+ infra
  + cdk (this is where SST is)
+ apps
  + admin (a react app)
  + web (another react app)
Any thoughts?
f
Hey @justindra,I think you can exclude certain directories in
tsconfig
. lemme check.
Can you try adding an
exclude
field in ur
tsconfig.json
like this:
Copy code
{
  ...
  "exclude": [
    "./path/to/react/**/*"
  ]
}
cc @thdxr in case he knows a better way
j
I just added the following:
Copy code
"exclude": ["../../node_modules/**/*"]
But it doesn't seem to fix the issue
f
Oh, can I see your folder structure?
t
I've seen this before but would need to see the whole structure
j
Ok, so I just moved
@types/react
to the app folder instead and it seems to work that way. So I think it could be to do with the monorepo
This branch has the changes I'm trying to perform https://github.com/justindra/townhub/tree/upgrade-sst