-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid file path on startup for relative imported modules / files #148
Comments
Can you upgrade to edge-runtime 1.8.2 and see if it fixes the issue? |
Checked on version 1.8.2 and 1.9.0 (latest available for now) and still the same error on container startup:
Tried to import the The latest stable and for me working version is 1.6.0. |
its working for us @1.9.0. Please update the main.ts |
Thanks for your response, still getting the same error @1.9.0. I digged a little bit through the latest commits and versions and noticed that everything works fine until @1.6.2 and breaks at @1.6.3. There I found this commit / change which is related to @1.6.3: Seems related to this commit, can you have a look at it? Regardless if I keep the |
Can you share your |
The part for the workers is exactly the same as described in the example: --- EDIT --- I'm pretty sure to know where's the error. As already mentioned, it stopped to work for me with v1.6.3, here are the changes: If digged a little bit more into the changes and found especially this change, which also gives me the exact error on container startup: This check I'm referring to: As far as I understand (I'm not familiar with Rust) the functions checks, if a locally imported file / file path does not start with Now I don't know what the values for
As far as I understand, the Thanks so far. |
Are there any updates on this topic? Thanks in advance. |
Bug report
Describe the bug
I'm running the supabase edge-runtime in a self hosted environment. Since the upgrade from
supabase/edge-runtime:v1.5.2
to the latest available versionsupabase/edge-runtime:v1.7.2
I'm getting the following error on the container startup:The setup is exactly the same as described in the example here.
It works as expected on
supabase/edge-runtime:v1.6.0
.I'm mounting the functions directory as described in the docker example file here.
It seems like there is a
/
(slash) to much (3 instead of 2) in the file path where it tries to load the file.Expected behavior
The local file / module import works as expected.
Currently:
file:///home/deno/functions/_shared/headers.ts
Should be / correct:
file://home/deno/functions/_shared/headers.ts
The text was updated successfully, but these errors were encountered: