Skip to content

C3 used with npm doesn't produce working SolidStart projects (due to unenv/node/internal/* errors) #11479

@dario-piotrowicz

Description

@dario-piotrowicz

What versions & operating system are you using?

  System:
    OS: macOS 26.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 279.19 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.20.0 - /Users/dario/.nvm/versions/node/v22.20.0/bin/node
    Yarn: 1.22.22 - /Users/dario/.yarn/bin/yarn
    npm: 10.9.3 - /Users/dario/.nvm/versions/node/v22.20.0/bin/npm
    pnpm: 9.12.2 - /Users/dario/Library/pnpm/pnpm
    bun: 1.0.6 - /Users/dario/.bun/bin/bun
    Deno: 1.25.3 - /opt/homebrew/bin/deno
  npmPackages:
    wrangler: ^4.51.0 => 4.51.0 

Please provide a link to a minimal reproduction

no minimal repro needed

Describe the Bug

If I use create-cloudflare to create a SolidStart project via npm (specifically npm create cloudflare -- --platform=workers --framework=solid my-solid-app) the resulting project builds fine but then it can't be previewed via wrangler dev nor deployed via wrangler deploy as those commands cause the following errors:
Image

(Note: there are lots of other warnings but those don't seem to break the app)

See:

npm-c3-solid.mp4

This issue does not seem present when using pnpm instead, see:

pnpm-c3-solid.mp4

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

c3Relating to C3 (create-cloudflare) package

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions