I think some of the wires are crossed with the import paths somehow. I see this error with:
- NodeJS: 22
- TS:
~5.8.3
@mcp-ui/server: ^5.11.0
package.json: "type": "module",
- tsconfig.json
{
"compilerOptions": {
"lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator"],
"module": "NodeNext",
"esModuleInterop": true,
"moduleResolution": "node16",
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "lib",
"sourceMap": true,
"strict": true,
"target": "es2022",
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"compileOnSave": true,
"include": ["src"]
}
