Jox
Explore posts from serversAny way to fix sourcemaps being completely wrong?
For some reason sourcemaps in our Nuxt 3 application has suddenly stopped working correctly.
Breakpoints set in VS Code are no longer applied where you think they are, they are applied and triggered to other lines of code than the ones you chose.
Does anyone have any clue what could cause this? I'm clueless.
5 replies
Template ref "refName" used on a non-ref value. It will not work in the production build.
I'm seeing messages like this in the console.
Template ref "shippingForm" used on a non-ref value. It will not work in the production build.
What does it mean?
As far as I can tell I'm following the docs instructions for adding template refs so I'm not sure what will not work in production?
Example,
<Shipping ref="shippingForm" />
What am I missing?
Might add that I'm using this together with defineExpose
from the Shipping
component10 replies
How 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