Description
tsconfig.app.json (line 8) includes "types": ["vite/client", "node"]. The "node" type should not be in the browser app configuration — it exposes Node.js APIs that do not exist in the browser.
Current Config
{
"compilerOptions": {
"types": ["vite/client", "node"]
}
}
Fix
{
"compilerOptions": {
"types": ["vite/client"]
}
}
The node type is already available in tsconfig.node.json for the CLI/scripts.
Acceptance Criteria
Description
tsconfig.app.json(line 8) includes"types": ["vite/client", "node"]. The"node"type should not be in the browser app configuration — it exposes Node.js APIs that do not exist in the browser.Current Config
{ "compilerOptions": { "types": ["vite/client", "node"] } }Fix
{ "compilerOptions": { "types": ["vite/client"] } }The
nodetype is already available intsconfig.node.jsonfor the CLI/scripts.Acceptance Criteria
tsconfig.app.jsononly includesvite/clienttypestsc --noEmitstill passes