Skip to content

Relative import path in function regression #5069

@Siilwyn

Description

@Siilwyn

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

From version supabase 2.67.1 relative imports that use tsconfig paths or deno.json imports seem to fail. They work in version 2.67.0.

To Reproduce

For example:

import { Webhook } from 'standardwebhooks';

And:

{
  "imports": {
    "standardwebhooks": "npm:standardwebhooks@1.0.0"
  }
}

Fails on npx supabase functions deploy with:

Error: failed to create the graph

Caused by:
    Relative import path "standardwebhooks" not prefixed with / or ./ or ../

Expected behavior

Imports are resolved.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions