DenoDDeno
Powered by
jhJ
Denoβ€’2y ago
jh

Workspaces with deno deploy

I was playing with the new workspace feature in a repository with two apps (an oak api and a fresh app) and two libraries (lib-a, lib-b). Both apps depend on both libraries. It works fine in local development. But as is, I can't deploy these to deno deploy. I guess that's because the libraries are not automatically added into the code package to be deployed and cannot be resolved remotely. Error I am getting is:
The deployment failed: Relative import path "@repo/lib-a" not prefixed with / or ./ or ../ and not in import map from "file:///src/main.ts"
The deployment failed: Relative import path "@repo/lib-a" not prefixed with / or ./ or ../ and not in import map from "file:///src/main.ts"
.
Is there a recommended approach to do this? Do I need to use something like rollup to bundle all dependencies and deploy that?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

nodeModulesDir with deno workspaces
cameronmCcameronm / help
2y ago
Problems with Nested deno.json in Deno Workspaces
staytuned_teamSstaytuned_team / help
12mo ago
Failed deployment Deno Deploy
ssimonlpSssimonlp / help
16mo ago
Deno deploy
TallesTTalles / help
7mo ago