Report this

What is the reason for this report?

When will App Platform work with npm workspaces?

Posted on October 6, 2024

When deploying multiple apps/components with App Platform from a monorepo using workspaces for each app, App Platform caches the root package.json file when it should also take into account the workspace’s package.json file too. When the workspace dependencies change they’re not installed because App Platform incorrectly thinks since the root dependencies haven’t changed that it’s safe to use the cached node_modules.

For now I’m stuck setting global env NODE_MODULES_CACHE=false.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.