@prisma/[email protected] regression: "invalid container transport payload — input.environment is not a string" on prisma dev

Open
#30,937 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
nodejs, typescript
Domain
cli, devtools

Research direction

Start with the stack trace: deserialize in node_modules/@prisma/composer-prisma-cloud/dist/preflight-payload-lVzospVD-UbsnZyO9.mjs (around line 603) rejects input.environment, and it is called from deserializeContainers in @prisma/composer's container-transport-HcvNOGZL-twPi2TIv.mjs. Diff the 0.35.0 and 0.36.0 versions of those two files and the payload that .prisma-composer/dev/alchemy.run.ts builds. Done when bunx prisma dev --fresh provisions both services on 0.36.0 with the guide's unmodified code.

Written by the indexing model from the issue text.

Description

bug/1-unconfirmed kind/bug
Package and version

@prisma/[email protected] and @prisma/[email protected]

What happened?

Running bunx prisma dev (or bunx prisma dev --fresh) with a standard two-service Composer setup (matching the official getting-started guide exactly) fails immediately with:


@prisma/composer-prisma-cloud: invalid container transport payload — "input.environment" is not a string.
at deserialize (.../node_modules/@prisma/composer-prisma-cloud/dist/preflight-payload-lVzospVD-UbsnZyO9.mjs:603:45)
at deserializeContainers (.../node_modules/@prisma/composer/dist/container-transport-HcvNOGZL-twPi2TIv.mjs:42:42)
at .prisma-composer/dev/alchemy.run.ts:20:20


The error occurs inside the framework's own deserialization code before any user service logic is reached. --fresh does not help.

What did you expect to happen?

bunx prisma dev should start the local compute emulator and provision both services successfully, as it did with 0.35.0.

Minimal reproduction

Minimal reproduction

Follow the official getting-started guide exactly: https://www.prisma.io/docs/composer/getting-started

Use the exact module.ts, prisma.config.ts, src/quotes/service.ts, src/gateway/service.ts, src/quotes/server.ts, and src/gateway/server.ts from the guide without modification. Then run:
bash

bunx prisma dev --fresh

Workaround: downgrading to 0.35.0 resolves the issue:
bash

bun add @prisma/[email protected] @prisma/[email protected]
bunx prisma dev --fresh

Environment

OS: Fedora Linux
Node: v24.22.2 (via nvm)
Package manager: Bun v1.4.4
@prisma/composer: 0.36.0 (broken), 0.35.0 (works)
@prisma/composer-prisma-cloud: 0.36.0 (broken), 0.35.0 (works)
alchemy: 2.0.0-beta.83 (bundled internally by @prisma/composer)
No database involved — pure compute services only

Additional context
The alchemy upgrade warning (2.0.0-beta.84 is available) appears even after installing [email protected] at the top level, because @prisma/composer bundles its own copy at node_modules/@prisma/composer/node_modules/alchemy which is what actually runs.
The error is a regression: identical code and config worked on 0.35.0.
Full stack trace available above.
Dominant language
TypeScript
Stars
47.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
227

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/orm

All issues in prisma/orm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.