I’m beginning to wonder if these Seed build errors...
# seed
c
I’m beginning to wonder if these Seed build errors ⬆️ of not handling workspace dependencies are related to Vite. @thdxr and @Ross Coundon I believe you might be using StaticSite + a frontend that uses vite, right? If so, did you also do this in a monorepo context and have to configure anything special on the vite side to get it to build correctly on Seed?
t
I have two deployments on seed with Vite + monorepo, no issues
But not using svelte-kit. Although I was messing with solid-start this weekend which works similarly to svelte-kit and they specifically say it won't work with a monorepo
and you have to add an exception
c
Weird. Can’t for the life of me figure out what could be confusing Seed from installing modules in this /frontend workspace when it all builds locally
t
Maybe you can try something similar?
c
Ah, thanks, let me look at that
I 💙 you @thdxr. Your help led me down the right path to getting this finally working 🙌 I ended up adding the
nmHoistingLimits
setting to
/.yarnrc.yml
– the Yarn 2 equivalent of the Yarn 1 ‘nohoist’ command noted in the solid-start package you linked to above. For anyone else tripping on this, my
.yarnrc.yml
to use Yarn 2 + SvelteKitwith Seed is -
Copy code
nodeLinker: node-modules
nmHoistingLimits: workspaces
yarnPath: .yarn/releases/yarn-2.4.3.cjs
t
Glad it worked out - lucky coincidence I was playing with solid this weekend 😄