Skip to content

Tanstack Start Build error 1.142.13 #6198

@jsa4000

Description

@jsa4000

Which project does this relate to?

Start

Describe the bug

Hi,

From version >= 1.142.2 I am experiencing issues trying to build my project, some of them already fixed with latest fixes. However I am still having errors that previously work.

This is the error I am getting

 249 modules transformed.
✗ Build failed in 473ms
app:build: error during build:
app:build: [tanstack-start-core::server-fn:client] could not load module /Users/jsantosa/Projects/Github/tanstack-start-issue/packages/common/react/src/types/actions.ts
app:build: file: /Users/jsantosa/Projects/Github/tanstack-start-issue/packages/analytics/src/middleware/analytics.ts
app:build:     at Object.loadModule (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/plugin.js:103:27)
app:build:     at async ServerFnCompiler.getModuleInfo (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:698:5)
app:build:     at async file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:535:36
app:build:     at async Promise.all (index 1)
app:build:     at async ServerFnCompiler.findExportInModule (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:528:23)
app:build:     at async Promise.all (index 13)
app:build:     at async ServerFnCompiler.findExportInModule (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:528:23)
app:build:     at async Promise.all (index 0)
app:build:     at async ServerFnCompiler.findExportInModule (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:528:23)
app:build:     at async ServerFnCompiler.resolveBindingKind (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:577:21)
app:build:     at async ServerFnCompiler.resolveIdentifierKind (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:493:26)
app:build:     at async ServerFnCompiler.resolveExprKind (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:616:26)
app:build:     at async ServerFnCompiler.resolveCalleeKind (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:643:22)
app:build:     at async ServerFnCompiler.resolveExprKind (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:616:26)
app:build:     at async file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:398:15
app:build:     at async Promise.all (index 0)
app:build:     at async ServerFnCompiler.compile (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/compiler.js:395:32)
app:build:     at async Object.handler (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/@tanstack+start-plugin-core@1.142.13_@tanstack+react-router@1.142.13_react-dom@19.2.3_r_e7b8b517eb4baa1c20ac644cb52ff516/node_modules/@tanstack/start-plugin-core/dist/esm/create-server-fn-plugin/plugin.js:131:26)
app:build:     at async transform (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/rollup@4.54.0/node_modules/rollup/dist/es/shared/node-entry.js:21234:16)
app:build:     at async ModuleLoader.addModuleSource (file:///Users/jsantosa/Projects/Github/tanstack-start-issue/node_modules/.pnpm/rollup@4.54.0/node_modules/rollup/dist/es/shared/node-entry.js:21448:36)
app:build:  ELIFECYCLE  Command failed with exit code 1.
app:build: ERROR: command finished with error: command (/Users/jsantosa/Projects/Github/tanstack-start-issue/apps/app) /Users/jsantosa/Library/pnpm/.tools/pnpm/10.26.1/bin/pnpm run build exited (1)
app#build: command (/Users/jsantosa/Projects/Github/tanstack-start-issue/apps/app) /Users/jsantosa/Library/pnpm/.tools/pnpm/10.26.1/bin/pnpm run build exited (1)

Your Example Website or App

https://github.com/jsa4000/tanstack-start-issue.git

Steps to Reproduce the Bug or Issue

  1. Clone https://github.com/jsa4000/tanstack-start-issue.git
  2. Run pnpm install
  3. Run pnpm turbo build

Expected behavior

The project should build without errors.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.142.13
  • OS: macOS
  • Browser: Chrome, Safari, Firefox
  • Browser Version: N/A (Build error)
  • Bundler: vite
  • Bundler Version: 7.3.0

Additional context

What I have seen so far is since I am exporting functions from a common module (common-react) such as createMiddleware or createIsomorphicFn to other modules, this can cause conflicts with the new version of tanstack start. By directly importing tanstack-start directly into the modules and import those function it seems to work......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions