Cloudflare DevelopersCD
Cloudflare Developers2y ago
4 replies
quisi.do

How do you resolve workspace dependencies?

I have a package @me/xyz in the same monorepo as my worker. I list the package as in the worker's
package.json
dependencies entry as workspace:^. It runs in wrangler dev fine.

When I try to deploy, however, I get this error:

Could not resolve "@me/xyz"
You can mark the path "@me/xyz" as external to exclude it from the bundle, which will remove this error.

How do I fix this?
Was this page helpful?