stack.config.ts uses node:fs, node:path and process, but tsconfig.json
did not include node types, causing TS2591 errors and an implicit any
in editor diagnostics. Add types: ["node"], matching the convention in
web-runner and stack.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CSS imports had no type declaration, producing editor TS errors since
vanilla-extract styles are imported directly in source files. Add a
default-export string module declaration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
背景
tutorial 源码直接 import vanilla-extract 样式文件与 node 相关 API,缺类型声明导致编辑器 TS 报错。
变更内容
apps/tutorial/tsconfig.json声明 node types;apps/tutorial/src/env.d.ts补 css module 默认导出为 string 的声明。自测结果
apps/tutorial下tsc --noEmit通过。