Closed ConorHaining closed 3 years ago
Hi @ConorHaining ! Thanks for reporting this bug. I can't immediately find the fix, so I will have to investigate a bit, but I will keep you updated.
Hello! I am taking a look at it (even I am a super Deno noob π
). I think I know where the bug comes from. If I change my nessie.config.ts
like this it works (I cloned this repo to my local machine):
diff --git a/backend/nessie.config.ts b/backend/nessie.config.ts
index 4254205..d9e6668 100644
--- a/backend/nessie.config.ts
+++ b/backend/nessie.config.ts
@@ -2,7 +2,7 @@ import {
ClientOptions,
ClientPostgreSQL,
NessieConfig,
-} from "https://deno.land/x/nessie/mod.ts";
+} from "../../deno-nessie/mod.ts";
I assume there is something related to the path where we are importing the ClientPostgreSQL
. I will try to fix it myself πͺ
Update: I don't have any idea how to fix it, sorry! I think it is something related to the resolve
function when resolving paths or something, but I am not certain.
Thats the conclusion I also reached. The issue was related to another bug from last week, but it should be good with v1.3.2 πͺπ»
Thank you so much @halvardssm, confirmed it's working in v1.3.2 π
System (please complete the following information):
Describe the bug A clear and concise description of what the bug is.
When attempting to run a migration, and this is currently the only migration, I am unable to do so as the path for the migration is being pulled from deno.land rather than the local filesystem.
TypeError: An unsupported media type was attempted to be imported as a module.
To Reproduce Steps to reproduce the behavior:
deno run -A --unstable https://deno.land/x/nessie/cli.ts migrate
Expected behavior A clear and concise description of what you expected to happen.
Migration happens and query is executed on the database
Screenshots or error log If applicable, add screenshots or error log to help explain your problem.
Additional context Add any other context about the problem here. Attaching the migration file. 20210513164926-createvehiclemovements.txt