T
TanStack11mo ago
national-gold

(getUserConfig.plugins || []) is not iterable with v1.69.3

Just upgraded... My dependencies:
"@tanstack/react-router": "^1.69.1",
"@tanstack/router-devtools": "^1.69.1",
"@tanstack/router-plugin": "^1.69.1",
"@tanstack/start": "^1.69.3",
"@tanstack/react-router": "^1.69.1",
"@tanstack/router-devtools": "^1.69.1",
"@tanstack/router-plugin": "^1.69.1",
"@tanstack/start": "^1.69.3",
I'm getting the following when trying to start the server:
vinxi starting dev server

ERROR (getUserConfig.plugins || []) is not iterable 15:50:53

at Object.plugins (node_modules/.pnpm/@tanstack+start@1.69.3_@types+node@20.5.1_ioredis@5.4.1_react-dom@18.3.1_react@18.3.1__react@_onkppqfm7ish7t6oqjr33ytama/node_modules/@tanstack/start/dist/esm/config/index.js:321:58)
at Object.plugins (node_modules/.pnpm/@tanstack+start@1.69.3_@types+node@20.5.1_ioredis@5.4.1_react-dom@18.3.1_react@18.3.1__react@_onkppqfm7ish7t6oqjr33ytama/node_modules/@tanstack/start/dist/esm/config/index.js:334:44)
at createViteHandler (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/dev-server.js:58:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/router-modes.js:257:24)
at async Promise.all (index 0)
at async createDevServer (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/dev-server.js:156:5)
at async Object.run (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/bin/cli.mjs:186:17)
at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:307:11)
vinxi starting dev server

ERROR (getUserConfig.plugins || []) is not iterable 15:50:53

at Object.plugins (node_modules/.pnpm/@tanstack+start@1.69.3_@types+node@20.5.1_ioredis@5.4.1_react-dom@18.3.1_react@18.3.1__react@_onkppqfm7ish7t6oqjr33ytama/node_modules/@tanstack/start/dist/esm/config/index.js:321:58)
at Object.plugins (node_modules/.pnpm/@tanstack+start@1.69.3_@types+node@20.5.1_ioredis@5.4.1_react-dom@18.3.1_react@18.3.1__react@_onkppqfm7ish7t6oqjr33ytama/node_modules/@tanstack/start/dist/esm/config/index.js:334:44)
at createViteHandler (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/dev-server.js:58:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/router-modes.js:257:24)
at async Promise.all (index 0)
at async createDevServer (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/lib/dev-server.js:156:5)
at async Object.run (node_modules/.pnpm/vinxi@0.4.3_@types+node@20.5.1_ioredis@5.4.1_terser@5.34.1/node_modules/vinxi/bin/cli.mjs:186:17)
at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:307:11)
5 Replies
national-gold
national-goldOP11mo ago
I'm running pnpm and turborepo. This happens in a monorepo and standalone. I moved over to Router to keep moving. Maybe in a future release this gets cleared up?
eager-peach
eager-peach11mo ago
can you please post your app.config.ts ?
national-gold
national-goldOP11mo ago
// app.config.ts
import { defineConfig } from "@tanstack/start/config";
import { pigment, extendTheme } from "@[project]/vite-plugin";
import { getPigmentCSSTheme } from "@[project]/system";

const theme = extendTheme({
cssVarPrefix: 'project',
...getPigmentCSSTheme()
});

export default defineConfig({
vite: {
plugins: () => [
// @ts-ignore
pigment({
atomic: false,
theme: theme,
}),
]
}
});
// app.config.ts
import { defineConfig } from "@tanstack/start/config";
import { pigment, extendTheme } from "@[project]/vite-plugin";
import { getPigmentCSSTheme } from "@[project]/system";

const theme = extendTheme({
cssVarPrefix: 'project',
...getPigmentCSSTheme()
});

export default defineConfig({
vite: {
plugins: () => [
// @ts-ignore
pigment({
atomic: false,
theme: theme,
}),
]
}
});
optimistic-gold
optimistic-gold11mo ago
Plugins is now an array instead of a () => [] should be []
national-gold
national-goldOP11mo ago
Ah, I remember seeing this. Many thanks! @Olamide awesome, now it works.

Did you find this page helpful?