Skip to content

PAGES - BUG!!! --framework=remix > Error: Cannot find module 'fs-extra' #18621

@gowy222

Description

@gowy222

Existing documentation URL(s)

https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/

What changes are you suggesting?

pnpm create cloudflare@latest my-remix-app --framework=remix

root@5b3d5e4e09b7:/workspace# pnpm create cloudflare@latest my-remix-app --framework=remix
.../193a00b5474-131                      | Progress: resolved 1, reused 0, downloaded 0, added 0
.../193a00b5474-131                      |   +1 +
.../193a00b5474-131                      | Progress: resolved 1, reused 0, downloaded 1, added 1, done

──────────────────────────────────────────────────────────────────────────────────────────────────────────
👋 Welcome to create-cloudflare v2.33.3!
🧡 Let's get started.
📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.

Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
──────────────────────────────────────────────────────────────────────────────────────────────────────────

╭ Create an application with Cloudflare Step 1 of 3
│
├ In which directory do you want to create your application?
│ dir ./my-remix-app
│
├ What would you like to start with?
│ category Framework Starter
│
├ Which development framework do you want to use?
│ framework Remix
│
├ Continue with Remix via `pnpm dlx [email protected] my-remix-app --template https://github.com/remix-run/remix/tree/main/templates/cloudflare`
│

Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 14, reused 0, downloaded 14, added 0
Progress: resolved 109, reused 0, downloaded 108, added 0
Progress: resolved 166, reused 0, downloaded 163, added 0
Progress: resolved 172, reused 0, downloaded 172, added 0
Progress: resolved 188, reused 0, downloaded 188, added 0
 WARN  2 deprecated subdependencies found: [email protected], [email protected]
Packages: +195
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 195, reused 0, downloaded 195, added 13
Progress: resolved 195, reused 0, downloaded 195, added 17
Progress: resolved 195, reused 0, downloaded 195, added 43
Progress: resolved 195, reused 0, downloaded 195, added 86
Progress: resolved 195, reused 0, downloaded 195, added 195, done
node:internal/modules/cjs/loader:1242
  throw err;
  ^

Error: Cannot find module 'fs-extra'
Require stack:
- /root/.cache/pnpm/dlx/zk4xqtz2bpq5nd5tcv634f5y6i/193a00b5b5c-15f/node_modules/.pnpm/[email protected]/node_modules/create-remix/dist/index.js
- /root/.cache/pnpm/dlx/zk4xqtz2bpq5nd5tcv634f5y6i/193a00b5b5c-15f/node_modules/.pnpm/[email protected]/node_modules/create-remix/dist/cli.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1239:15)
    at Function._load (node:internal/modules/cjs/loader:1064:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1325:12)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (/root/.cache/pnpm/dlx/zk4xqtz2bpq5nd5tcv634f5y6i/193a00b5b5c-15f/node_modules/.pnpm/[email protected]/node_modules/create-remix/dist/index.js:19:11)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object..js (node:internal/modules/cjs/loader:1698:10)
    at Module.load (node:internal/modules/cjs/loader:1303:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/root/.cache/pnpm/dlx/zk4xqtz2bpq5nd5tcv634f5y6i/193a00b5b5c-15f/node_modules/.pnpm/[email protected]/node_modules/create-remix/dist/index.js',
    '/root/.cache/pnpm/dlx/zk4xqtz2bpq5nd5tcv634f5y6i/193a00b5b5c-15f/node_modules/.pnpm/[email protected]/node_modules/create-remix/dist/cli.js'
  ]
}

Node.js v23.3.0
╰  ERROR  Error
root@5b3d5e4e09b7:/workspace# 

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions