Jox
Explore posts from serversHow do I get a d.ts file to be used?
I'm extending a type from
hono
by adding that code in a hono.d.ts
file in my src
folder.
But TypeScript still doesn't know about the new property so obviously I'm doing something wrong.
What steps am I missing or what am I missunderstanding when it comes to extending a type for a third party library?
Does the module name have to match something in the import maps of deno.json
?
Any help would be much appreciated.5 replies
WWasp-lang
•Created by Jox on 10/30/2023 in #🙋questions
What's the Wasp way of adding ESLint/Prettier?
I saw that for production dependencies the docs mention the
dependencies
configuration in the wasp file.
But what about development dependencies?
Do you add a root package.json
file and install them yourself that way or what's the Wasp Way? 🙂4 replies
How to run tailwindcss cli with deno task?
I would like to be able to run the tailwindcss cli tool to watch and build stylesheets as per their cli docs, https://tailwindcss.com/docs/installation
But I can't see a way that I could do that with a
deno task
like a I could with an npm
script?
Is this a case where I have to add a package.json
file or is it possible to do without that?7 replies
Module not found when running deno run
Something weird has started happening.
When I run
deno run src/main.ts
it seems as if Deno is trying to run it from a completely bonkers file path.
error: Module not found "file:///Users/me/Projects/my-project/src/Users/me/Projects/my-project/src/main.ts".
I don't know what's happened and why it seems to append the Users folder twice.
Does anyone have any idea?9 replies
WWasp-lang
•Created by Jox on 8/5/2023 in #🙋questions
Supabase support
I saw this GH issue which mentions implementing e.g. Supabase support in the future, https://github.com/wasp-lang/wasp/issues/1265
And I read that you can connect to an external database with a database url environment variable.
Would that environment variable not be enough to use Supabase, or am I missing something? 🤔
6 replies
WWasp-lang
•Created by Jox on 8/3/2023 in #🙋questions
Using SQLite for production?
Reading the docs it's said a couple of times that "To run Wasp app in production, you will need to switch from SQLite to PostgreSQL."
Why is that? Is there something with how Wasp works that prevents the use of a SQLite database in production?
5 replies
WWasp-lang
•Created by Jox on 8/3/2023 in #🙋questions
Actions and reactivity
Going through the Todo app tutorial and reading this,
There seems to be some implied knowledge or context here?
What does reactivity mean in this context and how is it related to using a hook or not?
Is this a reference to some basic React concept or do I need to read through the
react-query
docs to understand why I wouldn't use a hook here or what "reactivity" means in this context?
I haven't been using React for a couple of years so my know-how isn't fully up to date.6 replies