Description
Running the linter before building the workspace throws TypeScript errors related to missing Node.js core modules. Specifically, the TypeScript compiler cannot find types for fs and path in demo/benchmark.ts because @types/node is missing from the project's root devDependencies.
Steps to Reproduce
- Clone the repository and install dependencies (e.g.,
npm install).
- Run the command
npm run lint before building the workspace.
- Observe the TypeScript compilation errors in the console.
Expected Behavior
The linter should execute and pass successfully without throwing type errors for standard Node.js built-in modules.
Actual Behavior / Error Output
demo/benchmark.ts: TS2591: Cannot find name 'fs'
demo/benchmark.ts: TS2591: Cannot find name 'path'
Environment Details
- OS: Any
- Node.js Version: Any
- Browser (if applicable): N/A
- WCI Package & Version: Monorepo main branch
Additional Context
Adding @types/node to devDependencies in the root package.json will resolve these TypeScript errors out of the box.
Description
Running the linter before building the workspace throws TypeScript errors related to missing Node.js core modules. Specifically, the TypeScript compiler cannot find types for
fsandpathindemo/benchmark.tsbecause@types/nodeis missing from the project's rootdevDependencies.Steps to Reproduce
npm install).npm run lintbefore building the workspace.Expected Behavior
The linter should execute and pass successfully without throwing type errors for standard Node.js built-in modules.
Actual Behavior / Error Output
Environment Details
Additional Context
Adding
@types/nodetodevDependenciesin the rootpackage.jsonwill resolve these TypeScript errors out of the box.