Skip to content

(devinxi) EISDIR: illegal operation on a directory, read #4182

Closed
@gunnartorfis

Description

@gunnartorfis

Which project does this relate to?

Start/Router

When running vite dev, I get the following two errors:

Update: I should've opened up two separate issues.

FIXED: Could not resolve "tanstack:server-fn-manifest

This has been fixed in the latest alpha.

✘ [ERROR] Could not resolve "tanstack:server-fn-manifest"

    ../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js:4:30:
      4 │ import _serverFnManifest from "tanstack:server-fn-manifest";
        ╵                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "tanstack:server-fn-manifest" as external to exclude it from the bundle,
  which will remove this error and leave the unresolved path in the bundle.

Error: Build failed with 2 errors:
../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js:1:33: ERROR: Could not resolve "tanstack:start-manifest"
../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js:4:30: ERROR: Could not resolve "tanstack:server-fn-manifest"
    at failureErrorWithLog (/Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1463:15)
    at /Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:924:25
    at /Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1341:9
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Then there's another error just above ✅ Processed routes in 130ms:

♻️  Generating routes...
Error: EISDIR: illegal operation on a directory, read
    at Object.readFileSync (node:fs:442:20)
    at handleNode (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/@[email protected]_@[email protected]_@tanstack+react-route_936f541478aff79aeaab882cae686bfe/node_modules/@tanst
ack/start-plugin-core/dist/esm/start-server-routes-plugin/plugin.js:163:42)
    at handleNode (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/@[email protected]_@[email protected]_@tanstack+react-route_936f541478aff79aeaab882cae686bfe/node_modules/@tanst
ack/start-plugin-core/dist/esm/start-server-routes-plugin/plugin.js:194:15)
    at generator (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/@[email protected]_@[email protected]_@tanstack+react-route_936f541478aff79aeaab882cae686bfe/node_modules/@tansta
ck/start-plugin-core/dist/esm/start-server-routes-plugin/plugin.js:215:11)
    at async generate (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/@[email protected]_@[email protected]_@tanstack+react-route_936f541478aff79aeaab882cae686bfe/node_modules/@t
anstack/start-plugin-core/dist/esm/start-server-routes-plugin/plugin.js:23:7)
    at async PluginContext.buildStart (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/@[email protected]_@[email protected]_@tanstack+react-route_936f541478aff79aeaab882cae686bfe
/node_modules/@tanstack/start-plugin-core/dist/esm/start-server-routes-plugin/plugin.js:49:7)
    at async Promise.all (index 7)
    at async EnvironmentPluginContainer.hookParallel (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_m
odules/vite/dist/node/chunks/dep-DBxKXgDP.js:42159:5)
    at async EnvironmentPluginContainer.buildStart (file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_mod
ules/vite/dist/node/chunks/dep-DBxKXgDP.js:42178:5)
    at async file:///Users/gunnartorfi/code/noona-os/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DBxKXgDP
.js:38709:7 {
  errno: -21,
  code: 'EISDIR',
  syscall: 'read'
}

Your Example Website or App

https://github.com/gunnartorfis/tanstack-start-devinxi-repro

Steps to Reproduce the Bug or Issue

  1. Follow the upgrade guide to migrate from vinxi.
  2. Run vite dev

Expected behavior

We shouldn't have an error.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 136

Additional context

"@tanstack/react-router": "1.120.4-alpha.19",
"@tanstack/react-router-devtools": "1.120.4-alpha.19",
"@tanstack/react-start": "1.120.4-alpha.23",
"vite": "^6.3.5"

Here's my vite.config.ts:

import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
  plugins: [tsconfigPaths(), tanstackStart({})],
});

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