Skip to content

deno monorepo support does not support using dependencies in workspace packages #4550

Description

@alita-moore

I am getting the following error

Relative import path "axios" not prefixed with / or ./ or ../ and not in import map from "file:///Users/alitamoore/workspaces/monorepo/libs/core/dist/src/errors/core.d.ts"

when running an edge function locally. The dependency is imported in a workspace package into the function. That worksapce package has dependencies. The workspace package is defined using package.json. This workflow is supported by deno, however, supabase does not interpret the package.json of the workspace package.

Yet the package.json has the necessary dependencies defined, but the system seems to require that it be a deno.json. To work around it I need to manually insert the dependencies in the deno.json even though I'm just duplicating the dependencies between package.json and deno.json.

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