Title: Cannot find module error when using pnpm · Issue #455 · TanStack/cli · GitHub
Open Graph Title: Cannot find module error when using pnpm · Issue #455 · TanStack/cli
X Title: Cannot find module error when using pnpm · Issue #455 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App Describe the bug When creating new project via pnpm dlx @tanstack/cli@latest create, the resulting app throws Error: Cannot find module 'tanstack-start-injected-head-scripts:v' when ...
Open Graph Description: Which project does this relate to? Create Tanstack App Describe the bug When creating new project via pnpm dlx @tanstack/cli@latest create, the resulting app throws Error: Cannot find module 'tanst...
X Description: Which project does this relate to? Create Tanstack App Describe the bug When creating new project via pnpm dlx @tanstack/cli@latest create, the resulting app throws Error: Cannot find module 't...
Opengraph URL: https://github.com/TanStack/cli/issues/455
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot find module error when using pnpm","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App\n\n### Describe the bug\n\nWhen creating new project via `pnpm dlx @tanstack/cli@latest create`, the resulting app throws `Error: Cannot find module 'tanstack-start-injected-head-scripts:v'` when visiting `localhost:3000`.\n\nNote that if using `npx @tanstack/cli@latest create`,everything works as expected. This issues appears to affect `pnpm` only.\n\n### Your Example Website or App\n\nNot applicable, run cli as normal\n\n### Steps to Reproduce the Bug or Issue\n\n1. Run `pnpm dlx @tanstack/cli@latest create my-app`\n2. Select all default settings\n3. `cd my-app`\n4. `pnpm run dev`\n5. Navigate to `localhost:3000` in browser\n6. Observe error message in browser and terminal\n\n### Expected behavior\n\nExpect to see template Tanstack Start app in browser. Browser displays `{\"status\":500,\"unhandled\":true,\"message\":\"HTTPError\"}` instead.\n\nTerminal displays:\n```$ vite dev\n\n VITE v8.0.14 ready in 2348 ms\n\n ➜ Local: http://localhost:3000/\n ➜ Network: use --host to expose\n ➜ press h + enter to show help\n4:06:33 pm [vite] (ssr) connected.\nError: Cannot find module 'tanstack-start-injected-head-scripts:v' imported from '/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js'\n at fetchModule (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:23110:32)\n ... 8 lines matching cause stack trace ...\n at ModuleRunner.getModuleInformation (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:1199:28) {\n cause: Error: Cannot find module 'tanstack-start-injected-head-scripts:v' imported from '/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js'\n at fetchModule (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:23110:32)\n at RunnableDevEnvironment.fetchModule (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:24798:10)\n at fetchModule (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:24748:17)\n at handleInvoke (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:26564:27)\n at EventEmitter.listenerForInvokeHandler (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:26619:19)\n at EventEmitter.emit (node:events:509:28)\n at Object.send (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/chunks/node.js:10788:37)\n at Object.invoke (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:606:31)\n at Object.invoke (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:655:31)\n at ModuleRunner.getModuleInformation (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:1199:28) {\n code: 'ERR_MODULE_NOT_FOUND',\n runnerError: Error: RunnerError\n at reviveInvokeError (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:547:64)\n at Object.invoke (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:620:11)\n at async ModuleRunner.getModuleInformation (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:1199:7)\n at async request (file:///Users/Braden/Projects/my-app/node_modules/.pnpm/vite@8.0.14_jiti@2.7.0/node_modules/vite/dist/node/module-runner.js:1216:83)\n at async getStartManifest (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/router-manifest.ts:61:17)\n at async computeFinalManifest (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/finalManifest.ts:264:13)\n at async executeRouter (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:480:26)\n at async next (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:229:16)\n at async handleServerRoutes (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:735:15)\n at async eval (/Users/Braden/Projects/my-app/node_modules/.pnpm/@tanstack+start-server-core@1.169.3/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:543:22)\n },\n status: 500,\n statusText: undefined,\n headers: undefined,\n data: undefined,\n body: undefined,\n unhandled: true\n}\n```\n\n### Screenshots or Videos\n\n_No response_\n\n### Platform\n\n- OS: macOS\n- Browser: Safari, Chrome\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/bradenmitchell","@type":"Person","name":"bradenmitchell"},"datePublished":"2026-05-26T06:40:11Z","url":"https://github.com/TanStack/cli/issues/455"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78fae3df-f635-315e-42b8-6cab39acbad3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D002:137FBB:11B9BA9:172495A:6AF9A245 |
| html-safe-nonce | 99d774233fe00b94f6d040f36b821e2f53be5a72732f1e063d1b7669151f6ce0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDAyOjEzN0ZCQjoxMUI5QkE5OjE3MjQ5NUE6NkFGOUEyNDUiLCJ2aXNpdG9yX2lkIjoiNDM3OTg5MzAwODk4ODQ4MDA2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c5c93ae0639d84f7062ad62a0243aa7573e7f8005bcfae474529237999ff552 |
| hovercard-subject-tag | issue:4521993250 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/cli/455/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1ce06f6c7beeec8a646e83154ea229556c58f6d85507ecdffa8f92a880a874c/TanStack/cli/issues/455 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1ce06f6c7beeec8a646e83154ea229556c58f6d85507ecdffa8f92a880a874c/TanStack/cli/issues/455 |
| og:image:alt | Which project does this relate to? Create Tanstack App Describe the bug When creating new project via pnpm dlx @tanstack/cli@latest create, the resulting app throws Error: Cannot find module 'tanst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradenmitchell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/cli git https://github.com/TanStack/cli.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 932949058 |
| octolytics-dimension-repository_nwo | TanStack/cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932949058 |
| octolytics-dimension-repository_network_root_nwo | TanStack/cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width