Open jpaquim opened 2 years ago
Fixes https://github.com/Rich-Harris/svelte-knobby/issues/28 from my tests. I was facing a few issues with pnpm's handling of the yooutils
and other dependencies, needed to shamefully hoist those to work correctly.
Thanks for this! Would love to be able to use this with svelte-kit. When I try to install your fork, I get this error when importing svelte-knobby
:
> Build failed with 1 error:
node_modules/.pnpm/vite@2.8.6_sass@1.49.9/node_modules/vite/dist/node/chunks/dep-9c153816.js:29537:10:
ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "svelte-knobby". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "svelte-knobby". The package may have incorrect main/module/exports specified in its package.json.
Should I fork your fork and build it first if I want to use it?
Hey @FractalHQ! Yes, I'm basically including my fork as a git submodule and building it locally before my svelte-kit builds. You can check out either https://github.com/jpaquim/svelte-webgl-fluid-simulation or https://github.com/jpaquim/svelte-webgpu for examples of usage.
I'd assume that when integrated upstream (this repo) this manual build process won't be necessary anymore, but there still may be some details I'm overlooking...
Update dependencies to latest version. The resulting package should be compatible with the latest SvelteKit version.