acce
acce
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
Hey sorry for not updating here. I've actually created an issue for this bug on github. https://github.com/denoland/fresh/issues/2440
9 replies
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
I just cleared the cache by deleting fresh, esbuild and a few others from /users/me/.cache Rerunning gets the same error after reloading the missing modules.
9 replies
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
Ok, so I've just tried deleting the file and manually creating one with a console log. I can import this perfectly fine, getting the console log as well. As soon as I run deno task start, the newly created file thorws the same errors again. This leads me to thinking there's an error with the fresh library.
9 replies
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
Interestingly, I was able to run the code with tsx but got import errors from within the code so it doesn't seem to be a problem with the FS or pathing.
9 replies
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
That import is coming from the fresh library. importing the file using join is not my code, it comes from deno.land/x/fresh. On top of that, running the file with deno run -A fresh.gen.ts throws the same error. So this is probably a problem with Ubuntu on WSL.
9 replies
DDeno
Created by acce on 5/20/2024 in #help
Importing module is "not found" even though it obviously exists.
Just for sanity, I tried running with tsx globally installed in the same Ubuntu env. It found the module fine, but failed on importing stuff that is defined in deno.json -> imports which is exactly what I would expect from a node process. But the goal here was checking file permissions or something like that. But Node/TSX can find it fine. So it 100% exists.
9 replies