Summary
Errors occur when creating an app by running fedify init with a combination of certain Web Framework Integration packages and @fedify/mysql.
@fedify/astro
@fedify/elysia
@fedify/nitro
Expected Behavior
- Run
fedify init <DIR> -w <"astro" | "elysia" | "nitro"> -p <PACKAGE_MANAGER> -k mysql -m <MESSAGE_QUEUE> or <...> -k <KV_STORE> -m mysql
- Start server
- Run
fedify lookup -p <HOST>/users/john
- Lookup successfully.
Actual Behavior
Following errors appeared:
astro: After step 2, request /
10:02:50 [ERROR] TypeError: Cannot read properties of undefined (reading 'isServer')
at new ConnectionConfig (/tmp/mysql/astro/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@22.19.15/node_modules/mysql2/lib/connection_config.js:95:29)
at new PoolConfig (/tmp/mysql/astro/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@22.19.15/node_modules/mysql2/lib/pool_config.js:10:29)
at createPool (/tmp/mysql/astro/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@22.19.15/node_modules/mysql2/lib/create_pool.js:7:29)
at Object.createPromisePool [as createPool] (/tmp/mysql/astro/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@22.19.15/node_modules/mysql2/promise.js:46:20)
at eval (/tmp/mysql/astro/pnpm/src/federation.ts:10:30)
at async ESModulesEvaluator.runInlinedModule (file:///tmp/mysql/astro/pnpm/node_modules/.pnpm/vite@7.3.1_@types+node@22.19.15_yaml@2.8.3/node_modules/vite/dist/node/module-runner.js:913:3)
at async ModuleRunner.directRequest (file:///tmp/mysql/astro/pnpm/node_modules/.pnpm/vite@7.3.1_@types+node@22.19.15_yaml@2.8.3/node_modules/vite/dist/node/module-runner.js:1146:59)
at async ModuleRunner.cachedRequest (file:///tmp/mysql/astro/pnpm/node_modules/.pnpm/vite@7.3.1_@types+node@22.19.15_yaml@2.8.3/node_modules/vite/dist/node/module-runner.js:1053:73)
at async eval (/tmp/mysql/astro/pnpm/src/middleware.ts:2:1)
at async ESModulesEvaluator.runInlinedModule (file:///tmp/mysql/astro/pnpm/node_modules/.pnpm/vite@7.3.1_@types+node@22.19.15_yaml@2.8.3/node_modules/vite/dist/node/module-runner.js:913:3)
10:02:50 [ERROR] Cannot read properties of undefined (reading 'isServer')
Stack trace:
at /tmp/mysql/astro/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@22.19.15/node_modules/mysql2/lib/connection_config.js:95:29
[...] See full stack trace in the browser, or rerun with --verbose.
elysia: On step 3
/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/connection_config.js:95
this.isServer = options.isServer;
^
TypeError: Cannot read properties of undefined (reading 'isServer')
at new ConnectionConfig (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/connection_config.js:95:29)
at new PoolConfig (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/pool_config.js:10:29)
at createPool (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/create_pool.js:7:29)
at Object.createPromisePool [as createPool] (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/promise.js:46:20)
at <anonymous> (/tmp/mysql/elysia/pnpm/src/federation.ts:10:30)
at ModuleJob.run (node:internal/modules/esm/module_job:430:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.14.1
^C ELIFECYCLE Command failed.
nitro: No response from server.
Environment
Devcontainer in codebase.
Logs / Screenshots
No response
Steps to Reproduce
See Expected Behavior
Summary
Errors occur when creating an app by running
fedify initwith a combination of certain Web Framework Integration packages and@fedify/mysql.@fedify/astro@fedify/elysia@fedify/nitroExpected Behavior
fedify init <DIR> -w <"astro" | "elysia" | "nitro"> -p <PACKAGE_MANAGER> -k mysql -m <MESSAGE_QUEUE>or<...> -k <KV_STORE> -m mysqlfedify lookup -p <HOST>/users/johnActual Behavior
Following errors appeared:
astro: After step 2, request/elysia: On step 3/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/connection_config.js:95 this.isServer = options.isServer; ^ TypeError: Cannot read properties of undefined (reading 'isServer') at new ConnectionConfig (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/connection_config.js:95:29) at new PoolConfig (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/pool_config.js:10:29) at createPool (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/lib/create_pool.js:7:29) at Object.createPromisePool [as createPool] (/tmp/mysql/elysia/pnpm/node_modules/.pnpm/mysql2@3.20.0_@types+node@25.5.0/node_modules/mysql2/promise.js:46:20) at <anonymous> (/tmp/mysql/elysia/pnpm/src/federation.ts:10:30) at ModuleJob.run (node:internal/modules/esm/module_job:430:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) Node.js v24.14.1 ^C ELIFECYCLE Command failed.nitro: No response from server.Environment
Devcontainer in codebase.
Logs / Screenshots
No response
Steps to Reproduce
See Expected Behavior