Closed errorcodezero closed 2 years ago
The svelte example won't work with pnpm
out of the box. You'll need to add a pnpm
workspaces file, and adjust the workspace dependencies as described in the docs here: https://pnpm.io/workspaces#workspace-protocol-workspace.
Alternatively, you can get this example up and running without any modifications using npm
or yarn
. Or, if you're looking for a pnpm
starter you can use https://github.com/vercel/turborepo/tree/main/examples/with-pnpm.
We definitely want to make this easier so any example can be easily used with any package manager in the future!
Alright thank you for the clarification. Makes a lot more sense.
What version of Turborepo are you using?
latest
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Describe the Bug
When I use the svelte kit example from turborepo, it breaks since it can't import the local package packages/ui.
Expected Behavior
It should just work and import the local ui package.
To Reproduce
npx degit vercel/turborepo/examples/with-svelte with-svelte
cd with-svelte
pnpm install
pnpm run build