gh680
DTDrizzle Team
•Created by babakfp on 2/7/2024 in #help
Are there any examples with Drizzle + SvelteKit + `better-sqlite3`?
Did you try
pnpm drizzle-kit push:sqlite
?7 replies
Disappearing button text?
I gave this a try and it didn't seem to do anything differently. Are there other vite or solid config changes needed that aren't explicitly listed here? The readme seemed to suggest that I'd be prompted for a bunch of package.json settings, but never was. I tried to manually set those, but I never saw the /dist output look like what was suggested. These are probably all really dumb questions, I just have no experience with build config or rollup. Any easy suggestions for me?
8 replies
Disappearing button text?
Hey @mdynnl, yes. I created stripped down repos that demonstrate the issue:
https://github.com/greg-hammond/ui-comp-test.git
exports a Button component, and has an npm package on github.
https://github.com/greg-hammond/button-consumer-test.git
is a test project that imports Button from that package.
If you clone the test project, pnpm install, pnpm dev, and browse to :3102, you will see the problem occur.
If you build that project and run from /dist (pnpm build / pnpm start), the problem does not occur.
(And: if I have the ui-comp-test
repo open, and dev link the package, the problem also does not occur).
If you're able to take a look, that would be great. Thank you!8 replies
Can't get createServerData$ to work as expected
@totskie730 thank you, this works great. I was over-invested in trying to make a specific approach (using
useRouteData
example from the docs) and didn't know how to refactor for my specific case. Appreciate your taking the time to post a working solution.8 replies
Can't get createServerData$ to work as expected
@Nikos thanks for the replies. I think my problem was that my route component was re-exporting the above from another location in the project. It seems that solid-start requires that my routeData/createServerData$ code physically live in the route component itself (?). If I bring that code into the route component itself, then things work.
8 replies