-
Notifications
You must be signed in to change notification settings - Fork 233
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
Unexpected behaviour when importing another project using its mod.ts file #3093
Comments
I added a GitHub action with 3 jobs which hopefully make the problem quite clear: The
Both edge functions respond successfully. In the
In the
|
@nyannyacha fyi |
I plan to check this thing in the Deno 2.1 upgrade. |
@sweatybridge, I just wanted to ask whether this problem is really related to Deno workspaces and whether it should be closed as a duplicate of the Deno workspaces issue. Yes, it occurred when we tried this mod.ts import as an alternative to Deno workspaces, but as far as I am concerned importing something by their mod.ts file should work independent of Deno workspaces. |
Perhaps it's a docker volume mount issue? I looked at https://github.com/maximilian-hammerl/supabase-local-import-bug and it refers to a folder higher than supabase folder. |
@nyannyacha oh you are probably right. We do support parent directories but in a somewhat limited way. #2533 (comment) We have released a fix for functions deploy but for local serving, this might still be an issue. |
We now support the workspace feature for Deno and NodeJS(npm). Please refer to the links below for examples: |
Describe the bug
We started using Deno workspaces recently and when we found it that Supabase edge functions do not yet support Deno workspaces (#3047), we worked around this issue by adding the workspace members to the imports like this:
As the next step we wanted to just import the
mod.ts
files of the other workspace members:While we refactored our edge functions, we tested every edge functions after we adjusted its imports and everything worked as expected.
But as soon as we refactored the last edge functions, all edge functions always failed with the following error message:
To Reproduce
Repository with more details, examples and to how to reproduce: https://github.com/maximilian-hammerl/supabase-local-import-bug
Expected behavior
Imports of one edge functions should not affect other edge functions in any way.
I was not sure whether to open this issue here in the CLI repository or in the edge runtime repository. I decided for the CLI repository, as we use the edge runtime through the CLI.
The text was updated successfully, but these errors were encountered: